class Rake::DataTask::Data

Represents a table accessed via a database, roughly analogous to the File class.

Attributes

adapter[RW]
name[RW]

Public Class Methods

new(data_name, adapter) click to toggle source
# File lib/data_task/data.rb, line 12
def initialize data_name, adapter
  @name = data_name
  @adapter = adapter
end

Public Instance Methods

exist?(options={})
Alias for: exists?
exists?(options={}) click to toggle source
# File lib/data_task/data.rb, line 17
def exists? options={}
  @adapter.data_exists?(@name, options)
end
Also aliased as: exist?
mtime() click to toggle source
# File lib/data_task/data.rb, line 23
def mtime
  @adapter.data_mtime(@name)
end
to_s() click to toggle source
# File lib/data_task/data.rb, line 27
def to_s
  @name
end