Sha256: bcabdbebf0f4b88ac8ad829f54dcea95a2f5c396e6bbe0878d859d46db285827
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module Helper def testing puts 'testing!' end end class Document def include_mixin Document.include Helper end end class InvalidCommandError < StandardError; end Helper123 = "marcell" #puts Object.const_get("Helper").instance_of?(::Module) #fail InvalidCommandError, 'invalid command', caller if !defined? helper_name doc = Document.new doc.include_mixin doc.testing puts doc.methods.include? :testing
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_commander-0.1.0 | test.rb |