Class: Dao::Data
- Inherits:
-
Map
- Object
- Map
- Dao::Data
- Defined in:
- lib/dao/data.rb
Instance Method Summary collapse
-
#inspect ⇒ Object
look good for inspect.
- #update(*args, &block) ⇒ Object
Instance Method Details
#inspect ⇒ Object
look good for inspect
6 7 8 |
# File 'lib/dao/data.rb', line 6 def inspect Dao.json_for(self) end |
#update(*args, &block) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/dao/data.rb', line 15 def update(*args, &block) if args.size==1 and args.first.respond_to?(:to_dao) to_dao = args.first.to_dao return super(to_dao) end super end |