Class: Naught::NullClassBuilder::Commands::DefineImplicitConversions
- Inherits:
-
Naught::NullClassBuilder::Command
- Object
- Naught::NullClassBuilder::Command
- Naught::NullClassBuilder::Commands::DefineImplicitConversions
- Defined in:
- lib/naught/null_class_builder/commands/define_implicit_conversions.rb
Instance Attribute Summary
Attributes inherited from Naught::NullClassBuilder::Command
Instance Method Summary collapse
Methods inherited from Naught::NullClassBuilder::Command
Constructor Details
This class inherits a constructor from Naught::NullClassBuilder::Command
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/naught/null_class_builder/commands/define_implicit_conversions.rb', line 5 def call defer do |subject| subject.module_eval do def to_ary [] end def to_str '' end end end end |