Methods

Naught::NullClassBuilder::Commands::DefineExplicitConversions

Public Instance Methods

call() click to toggle source
# File lib/naught/null_class_builder/commands/define_explicit_conversions.rb, line 6
def call
  defer do |subject|
    subject.module_eval do
      extend Forwardable
      def_delegators :nil, :to_a, :to_c, :to_f, :to_h, :to_i, :to_r, :to_s
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.