Class: RaaP::SymbolicCaller::Var
- Inherits:
-
Object
- Object
- RaaP::SymbolicCaller::Var
- Defined in:
- lib/raap/symbolic_caller.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #+(other) ⇒ Object
-
#initialize(name) ⇒ Var
constructor
A new instance of Var.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Var
Returns a new instance of Var.
22 23 24 |
# File 'lib/raap/symbolic_caller.rb', line 22 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/raap/symbolic_caller.rb', line 20 def name @name end |
Instance Method Details
#+(other) ⇒ Object
26 27 28 |
# File 'lib/raap/symbolic_caller.rb', line 26 def +(other) "#{self}#{other}" end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/raap/symbolic_caller.rb', line 30 def to_s @name end |