Wednesday, 16 December 2015

RubyLex

@scanner = RubyLex.new
@scanner.exception_on_syntax_error = false
a = @scanner.set_prompt do; puts 1; end
=> #<Proc:0x007f845529df70@(pry):37>
a.call
1
=> nil
view raw gistfile1.txt hosted with ❤ by GitHub

No comments:

Post a Comment