Class: Sprig::Source::SourceDeterminer

Inherits:
Object
  • Object
show all
Defined in:
lib/sprig/source.rb

Defined Under Namespace

Classes: FileNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name) ⇒ SourceDeterminer

Returns a new instance of SourceDeterminer.



65
66
67
# File 'lib/sprig/source.rb', line 65

def initialize(table_name)
  @table_name = table_name
end

Instance Attribute Details

#table_nameObject (readonly)

Returns the value of attribute table_name.



63
64
65
# File 'lib/sprig/source.rb', line 63

def table_name
  @table_name
end

Instance Method Details

#fileObject



69
70
71
# File 'lib/sprig/source.rb', line 69

def file
  File.new(filepath)
end