Naught::NullClassBuilder::Commands::DefineImplicitConversions

Public Instance Methods

call() click to toggle source
# 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
to_ary() click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 8
def to_ary
  []
end
to_str() click to toggle source
# File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 12
def to_str
  ''
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.