/usr/lib/ruby/vendor_ruby/naught/null_class_builder/commands/define_explicit_conversions.rb is in ruby-naught 1.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | require 'forwardable'
require 'naught/null_class_builder/command'
module Naught::NullClassBuilder::Commands
class DefineExplicitConversions < ::Naught::NullClassBuilder::Command
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
end
end
|