Method: ClassSupportMixin::InstanceMethods#attributes
- Defined in:
- lib/aninipot/support.rb
#attributes ⇒ Object
24 25 26 27 28 |
# File 'lib/aninipot/support.rb', line 24 def attributes attrs = {} self.default_attributes.keys.each {|k| attrs[k] = self.send(k) if self.respond_to?(k)} attrs end |