Module: RubyFeatures::Utils::ConstAccessor20
- Defined in:
- lib/ruby-features/utils/const_accessor_20.rb
Instance Method Summary collapse
Instance Method Details
#ruby_const_defined?(target, const_name) ⇒ Boolean
4 5 6 |
# File 'lib/ruby-features/utils/const_accessor_20.rb', line 4 def ruby_const_defined?(target, const_name) target.const_defined?(const_name) end |
#ruby_const_get(target, const_name) ⇒ Object
8 9 10 |
# File 'lib/ruby-features/utils/const_accessor_20.rb', line 8 def ruby_const_get(target, const_name) target.const_get(const_name) end |