Module: Tabulard::AttributeType Abstract
- Included in:
- Tabulard::AttributeTypes::Scalar
- Defined in:
- lib/tabulard/attribute_types.rb
Overview
It only exists to document the interface implemented by the different classes of AttributeTypes.
The minimal interface of an Attribute type.
Class Method Summary collapse
-
.build ⇒ Object
A smarter version of
#initialize, that will always return a frozen instance of the type, with optional syntactic sugar for its arguments compared to#initialize.
Instance Method Summary collapse
-
#compile(container) ⇒ Types::Type
Given a type container, return the actual, usable type for the attribute.
-
#each_column {|index, required| ... } ⇒ Object
Enumerate the columns (one or more) that may compose the attribute in the tabular document.
Class Method Details
.build ⇒ Object
A smarter version of #initialize, that will always return a frozen instance of the type, with optional syntactic sugar for its arguments compared to #initialize.
7 |
# File 'lib/tabulard/attribute_types.rb', line 7 def self.build(*); end |
Instance Method Details
#compile(container) ⇒ Types::Type
Given a type container, return the actual, usable type for the attribute.
12 |
# File 'lib/tabulard/attribute_types.rb', line 12 def compile(container); end |
#each_column(&block) ⇒ self #each_column ⇒ Enumerator
Enumerate the columns (one or more) that may compose the attribute in the tabular document.
27 |
# File 'lib/tabulard/attribute_types.rb', line 27 def each_column; end |