Module: Injected::InstanceDsl
- Included in:
- Instance
- Defined in:
- lib/injected/instance_dsl.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(receiver) ⇒ Object
5 6 7 8 9 |
# File 'lib/injected/instance_dsl.rb', line 5 def self.extended(receiver) class << receiver attr_accessor :injected_interfaces end end |
Instance Method Details
#injected(interface, attribute) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/injected/instance_dsl.rb', line 11 def injected(interface, attribute) @injected_interfaces ||= {} injected_interfaces[interface] = attribute attr_reader attribute private attribute end |