Sha256: 28d5c9e7d5659ac684ae4a5d2ebedca73e7fe224bee1fdb794e2ff560cef01ca
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module Darthjee module CoreExt module Class 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 end class Class include Darthjee::CoreExt::Class end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
darthjee-core_ext-1.7.0 | lib/darthjee/core_ext/class.rb |