Class: TableQuery::SchemaLoader::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/table-query/schema-loader.rb

Overview

Evaluation context for schema definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Create a context.



49
50
51
52
53
# File 'lib/table-query/schema-loader.rb', line 49

def initialize
  @type = VariableType.new
  @table = VariableTable.new
  @query = VariableQuery.new
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.



46
47
48
# File 'lib/table-query/schema-loader.rb', line 46

def query
  @query
end

#tableObject (readonly)

Returns the value of attribute table.



45
46
47
# File 'lib/table-query/schema-loader.rb', line 45

def table
  @table
end

#typeObject (readonly)

Returns the value of attribute type.



44
45
46
# File 'lib/table-query/schema-loader.rb', line 44

def type
  @type
end

Instance Method Details

#bindingObject

Return the context binding.



56
57
58
# File 'lib/table-query/schema-loader.rb', line 56

def binding
  Kernel.binding
end