Permalink
Browse files

Add default method shorthand, things like Ruby('$LOAD_PATH')

  • Loading branch information...
1 parent f6fbc26 commit 75a31634f33a0263ca702462b718032f0dca90cb @defunkt committed Jun 26, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/lyndon/ruby.rb
View
@@ -24,5 +24,12 @@ def invokeUndefinedMethodFromWebScript(name, withArguments:args)
end
end
end
+
+ ##
+ # Ruby('$LOAD_PATH') => array...
+ # Ruby('1 + 1') => 2
+ def invokeDefaultMethodWithArguments(args)
+ eval(args[0])
+ end
end
end

0 comments on commit 75a3163

Please sign in to comment.