Module: RubyFeatures::Concern::Feature
- Defined in:
- lib/ruby-features/concern/feature.rb
Instance Method Summary collapse
Instance Method Details
#_set_feature_name(name) ⇒ Object
23 24 25 |
# File 'lib/ruby-features/concern/feature.rb', line 23 def _set_feature_name(name) @_feature_name = name end |
#applied? ⇒ Boolean
19 20 21 |
# File 'lib/ruby-features/concern/feature.rb', line 19 def applied? @_applied end |
#apply ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ruby-features/concern/feature.rb', line 5 def apply unless applied? RubyFeatures.apply(*@_dependencies) @_apply_to_definitions.keys.each do |target| RubyFeatures::Lazy.apply(target) do _lazy_apply(target) end end @_applied = true end end |
#feature_name ⇒ Object
27 28 29 |
# File 'lib/ruby-features/concern/feature.rb', line 27 def feature_name @_feature_name end |