Class: TableQuery::SchemaLoader::Context
- Inherits:
-
Object
- Object
- TableQuery::SchemaLoader::Context
- Defined in:
- lib/table-query/schema-loader.rb
Overview
Evaluation context for schema definition.
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#binding ⇒ Object
Return the context binding.
-
#initialize ⇒ Context
constructor
Create a context.
Constructor Details
#initialize ⇒ Context
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
#query ⇒ Object (readonly)
Returns the value of attribute query.
46 47 48 |
# File 'lib/table-query/schema-loader.rb', line 46 def query @query end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
45 46 47 |
# File 'lib/table-query/schema-loader.rb', line 45 def table @table end |
#type ⇒ Object (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
#binding ⇒ Object
Return the context binding.
56 57 58 |
# File 'lib/table-query/schema-loader.rb', line 56 def binding Kernel.binding end |