Class: TypedRb::Model::TmSequencing

Inherits:
Expr show all
Defined in:
lib/typed/model/tm_sequencing.rb

Instance Attribute Summary collapse

Attributes inherited from Expr

#col, #line, #node, #type

Instance Method Summary collapse

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

#termsObject

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