Sha256: 1e109eb7bc55d2e3e80051d0881c7f995f1bd3c78fc1c4c6cc5bbc44430afd77

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

class Object

  def target(table_name, &block)
    Squealer::Target.new(Squealer::Database.instance.export, table_name, &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
  include Enumerable
  def each
    []
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sp-squealer-1.0 lib/squealer/object.rb
squealer-2.2.2 lib/squealer/object.rb
squealer-2.2.1 lib/squealer/object.rb
squealer-2.2.0 lib/squealer/object.rb