Created
June 3, 2013 03:36
-
-
Save keikun17/5696010 to your computer and use it in GitHub Desktop.
Trying out http://joshnuss.github.io/mruby-web-irb/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> a = -> { puts "En Taro Adun" } | |
>> a.call | |
=> NoMethodError: undefined method 'a' for main | |
>> a | |
=> NoMethodError: undefined method 'a' for main | |
# This works | |
>> @a = -> { puts "Allahu Akbar" } | |
>> @a.call | |
=> "Allahu Akbar" | |
>> @a | |
=> #<Proc:0x51d4a8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment