class Naught::NullClassBuilder::Commands::DefineImplicitConversions
Public Instance Methods
call()
click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 7 def call defer do |subject| subject.module_eval do def to_ary [] end def to_hash {} end def to_int 0 end def to_str '' end end end end
to_ary()
click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 10 def to_ary [] end
to_hash()
click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 14 def to_hash {} end
to_int()
click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 18 def to_int 0 end
to_str()
click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 22 def to_str '' end