Class: TypedRb::Model::TmSequencing
- Defined in:
- lib/typed/model/tm_sequencing.rb
Instance Attribute Summary collapse
-
#terms ⇒ Object
Returns the value of attribute terms.
Attributes inherited from Expr
Instance Method Summary collapse
- #check_type(context) ⇒ Object
-
#initialize(terms, node) ⇒ TmSequencing
constructor
A new instance of TmSequencing.
Constructor Details
#initialize(terms, node) ⇒ TmSequencing
Returns a new instance of TmSequencing.
8 9 10 11 |
# File 'lib/typed/model/tm_sequencing.rb', line 8 def initialize(terms, node) super(node) @terms = terms.reject(&:nil?) end |
Instance Attribute Details
#terms ⇒ Object
Returns the value of attribute terms.
7 8 9 |
# File 'lib/typed/model/tm_sequencing.rb', line 7 def terms @terms end |
Instance Method Details
#check_type(context) ⇒ Object
13 14 15 |
# File 'lib/typed/model/tm_sequencing.rb', line 13 def check_type(context) process_terms_before_return(@terms, context) end |