Class: RLSL::Prism::IR::TupleType
- Inherits:
-
Object
- Object
- RLSL::Prism::IR::TupleType
- Defined in:
- lib/rlsl/prism/ir/definitions.rb
Instance Attribute Summary collapse
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(*types) ⇒ TupleType
constructor
A new instance of TupleType.
- #to_sym ⇒ Object
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
#types ⇒ Object (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_sym ⇒ Object
61 62 63 |
# File 'lib/rlsl/prism/ir/definitions.rb', line 61 def to_sym :"tuple_#{types.map(&:to_s).join('_')}" end |