Sha256: c8be300100f56d15c233bd1924000ca174065e580801bfbadc0573640d307eff
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
class Object def target(table_name, row_id=nil, &block) Squealer::Target.new(Squealer::Database.instance.export, table_name, row_id, &block) end def assign(column_name, &block) Squealer::Target.current.assign(column_name, &block) end def import(*args) if args.length > 0 Squealer::Database.instance.import_from(*args) else Squealer::Database.instance.import end end def export(*args) if args.length > 0 Squealer::Database.instance.export_to(*args) else Squealer::Database.instance.export end end end class NilClass def each [] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squealer-2.1.0 | lib/squealer/object.rb |
squealer-1.2.0 | lib/squealer/object.rb |