examples/simple_test.rb in sourcerer-0.5.1 vs examples/simple_test.rb in sourcerer-0.5.2

- old
+ new

@@ -8,22 +8,26 @@ end # Proc #puts method(:hello_this).source #puts test.source -def hello sym,sym2= "#{sym}", options={},*params,&block # the params +class HelloWorld - [1,2,3].each do |do_| + def self.hello sym,sym2= "#{sym}", options={},*params,&block # the params - puts do_ # comment + [1,2,3].each do |do_| - end + puts do_ # comment - puts "some code" # some comment + end + puts "some code" # some comment + + end + end require 'debugger' #debugger #TODO finish up method reader -puts method(:hello).source +puts HelloWorld.method(:hello).source