Class: RaaP::SymbolicCaller::Var

Inherits:
Object
  • Object
show all
Defined in:
lib/raap/symbolic_caller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_sObject



30
31
32
# File 'lib/raap/symbolic_caller.rb', line 30

def to_s
  @name
end