Sha256: d32095426f84528fbdfdedcbdd646ec2aebc792f6b281a4ff4df12fa04b2c858
Contents?: true
Size: 256 Bytes
Versions: 4
Compression:
Stored size: 256 Bytes
Contents
class Object class << self private def default_value(name, value) define_method(name) { |*_| value } end def default_values(*names, value) names.each do |name| default_value(name, value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems