Sha256: 04438ca58c2a6aefa9d5028d6f3fd434e48602887c978fbd0ff8ba63ac7f7941
Contents?: true
Size: 278 Bytes
Versions: 4
Compression:
Stored size: 278 Bytes
Contents
require 'mpatch' class Test2 @@test= "asd" end class Test < Test2 def initialize @hello= "world" @no = "yes" end end puts Test2.inherited_by.inspect # [Test] puts Test.conv2hash # {"test"=>"asd"} puts Test.new.conv2hash # {"hello"=>"world", "no"=>"yes"}
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.12.2 | examples/class.rb |
mpatch-2.12.1 | examples/class.rb |
mpatch-2.12.0 | examples/class.rb |
mpatch-2.11.0 | examples/class.rb |