Sha256: 579e612626891d1c3406166e6af749b12dc80c85d2527b2e0bcac073d4de9f5c
Contents?: true
Size: 1.03 KB
Versions: 6
Compression:
Stored size: 1.03 KB
Contents
require "procemon" #class Hello # # def world arg # puts arg # end # # def hello # puts "this is hello, hy!" # end # #end # #class Proc # # def source_code # puts self.source_location.inspect # # end # #end # # # ##.to_proc.source_code #TestProc= Proc.new do # puts "hello world!" #end # #SecurityProc = Proc.new{ |*args| # puts "hello world!" #} # #class Test # # # attr_accessor :test1 # Test= Proc.new do # puts "hello world" # end # # class << self # attr_accessor :test2 # end # # def hello *args # puts self.test1.inspect # end # # def self.hello *args # puts self.test2.inspect # end # # def security_proc *args # self.class::Test.call *args # end # # #end # ##test= Test.new ##test.security_proc # ##require "sourcify" ##require "debugger" ##debugger # #puts SecurityProc.source_location.inspect #puts Test.method(:hello).to_proc.source_location.inspect #puts TestProc.source_location.inspect #method(:world).get_binding #puts test.get_binding #puts test.get_binding2 #puts test.get_binding
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
procemon-0.1.4 | test/lab.rb |
procemon-0.1.3 | test/lab.rb |
procemon-0.1.1 | test/lab.rb |
procemon-0.0.9 | test/lab.rb |
procemon-0.0.8 | test/lab.rb |
procemon-0.0.7 | test/lab.rb |