Class: RLSL::Prism::IR::TupleType

Inherits:
Object
  • Object
show all
Defined in:
lib/rlsl/prism/ir/definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*types) ⇒ TupleType

Returns a new instance of TupleType.



57
58
59
# File 'lib/rlsl/prism/ir/definitions.rb', line 57

def initialize(*types)
  @types = types
end

Instance Attribute Details

#typesObject (readonly)

Returns the value of attribute types.



55
56
57
# File 'lib/rlsl/prism/ir/definitions.rb', line 55

def types
  @types
end

Instance Method Details

#to_symObject



61
62
63
# File 'lib/rlsl/prism/ir/definitions.rb', line 61

def to_sym
  :"tuple_#{types.map(&:to_s).join('_')}"
end