Sha256: ac950d213d71a86557a7e2ccde3142dd36e58413021fa343eafb73e6898db26f
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
module Test module ClassMethods def test_class p 'this is a class method' end end module InstanceMethods def test_ins p 'this is a instance method' end def set a,b p b end def method_missing self end end # def self.included(receiver) # receiver.extend ClassMethods # receiver.send :include, InstanceMethods # end end class TestM include Test::InstanceMethods end TestM.new.test_ins TestM.new.set 'get_hosts_grid_store_data', begin "get_hosts_grid_store_data" rescue Exception => e ext_response(false,'sorry,server exception. '+e.to_s+'; $HostClientObjs=>'+$HostClientObjs.to_s) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lpmp-1.0.0 | test/module.rb |