Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/squealer/object.rb
Instance Method Summary collapse
- #assign(column_name, &block) ⇒ Object
- #export(*args) ⇒ Object
- #import(*args) ⇒ Object
- #target(table_name, &block) ⇒ Object
Instance Method Details
#assign(column_name, &block) ⇒ Object
7 8 9 |
# File 'lib/squealer/object.rb', line 7 def assign(column_name, &block) Squealer::Target.current.assign(column_name, &block) end |
#export(*args) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/squealer/object.rb', line 19 def export(*args) if args.length > 0 Squealer::Database.instance.export_to(*args) else Squealer::Database.instance.export end end |