Class: Gelauto::Var
- Inherits:
-
Object
- Object
- Gelauto::Var
- Defined in:
- lib/gelauto/var.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(name, types = TypeSet.new) ⇒ Var
constructor
A new instance of Var.
- #to_sig ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/gelauto/var.rb', line 5 def name @name end |
#types ⇒ Object
Returns the value of attribute types.
6 7 8 |
# File 'lib/gelauto/var.rb', line 6 def types @types end |
Instance Method Details
#to_sig ⇒ Object
13 14 15 |
# File 'lib/gelauto/var.rb', line 13 def to_sig "#{name}: #{types.to_sig}" end |