Class: Module

Inherits:
Object show all
Defined in:
lib/attr_inject/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#__inject_targetsObject



14
15
16
# File 'lib/attr_inject/core_ext.rb', line 14

def __inject_targets
  @__inject_targets ||= []
end

#attr_inject(attribute, options = {}) ⇒ Object



10
11
12
# File 'lib/attr_inject/core_ext.rb', line 10

def attr_inject(attribute, options={})
  __inject_targets << Inject::Target.new(self, attribute, options)
end