Class: Class
Instance Method Summary collapse
-
#injectable_attributes ⇒ Object
Returns an array of attributes of the class that have been declared to be injectable.
Instance Method Details
#injectable_attributes ⇒ Object
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 |