Module: Filebase::Model::Mixins::InstanceMethods
- Defined in:
- lib/filebase/model.rb
Instance Method Summary collapse
- #==(object) ⇒ Object
- #delete ⇒ Object
-
#eql?(object) ⇒ Boolean
this seems iffy.
- #hash ⇒ Object
- #save ⇒ Object
Instance Method Details
#==(object) ⇒ Object
192 193 194 |
# File 'lib/filebase/model.rb', line 192 def ==(object) key == object.key if object.is_a? Attributes end |
#delete ⇒ Object
191 |
# File 'lib/filebase/model.rb', line 191 def delete ; self.class.delete( self ) ; self ; end |
#eql?(object) ⇒ Boolean
this seems iffy
195 |
# File 'lib/filebase/model.rb', line 195 def eql?(object) ; key == object.key ; end |
#hash ⇒ Object
196 |
# File 'lib/filebase/model.rb', line 196 def hash ; key.hash ; end |
#save ⇒ Object
190 |
# File 'lib/filebase/model.rb', line 190 def save ; self.class.save( self ) ; end |