Module: RubyFeatures::Concern::ApplyTo
- Defined in:
- lib/ruby-features/concern/apply_to.rb
Instance Method Summary collapse
Instance Method Details
#_apply(target, apply_to_definitions, conditions) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ruby-features/concern/apply_to.rb', line 5 def _apply(target, apply_to_definitions, conditions) _with_instance_variable(:@_conditions, conditions) do _build_mixins(apply_to_definitions) end target_class = RubyFeatures::Utils.ruby_const_get(self, "::#{target}") _apply_methods(target_class) _apply_applied_blocks(target_class) end |