Class: TableQuery::SchemaLoader::VariableType Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

VariableType is a class for type special variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVariableType

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of VariableType.



9
10
11
# File 'lib/table-query/schema-loader.rb', line 9

def initialize
  @value = {}
end

Instance Attribute Details

#valueObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
# File 'lib/table-query/schema-loader.rb', line 7

def value
  @value
end

Instance Method Details

#define(name, &b) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/table-query/schema-loader.rb', line 13

def define(name, &b)
  @value[name] = Type.define(name, &b)
end