Class: Class

Inherits:
Object show all
Defined in:
lib/needle/extras/attr-inject.rb

Instance Method Summary collapse

Instance Method Details

#injectable_attributesObject

Returns an array of attributes of the class that have been declared to be injectable. See #attr_inject and Object#inject_attributes.



14
15
16
17
18
19
20
# File 'lib/needle/extras/attr-inject.rb', line 14

def injectable_attributes
  if defined?(@injectable_attributes)
    @injectable_attributes
  else
    []
  end
end