Class: MethodCallToken
- Inherits:
-
Object
- Object
- MethodCallToken
- Defined in:
- lib/string_builder.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(base, name, args) ⇒ MethodCallToken
constructor
A new instance of MethodCallToken.
- #to_s ⇒ Object
Constructor Details
#initialize(base, name, args) ⇒ MethodCallToken
Returns a new instance of MethodCallToken.
108 109 110 111 112 |
# File 'lib/string_builder.rb', line 108 def initialize(base, name, args) @base = base @name = name @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
106 107 108 |
# File 'lib/string_builder.rb', line 106 def args @args end |
#base ⇒ Object (readonly)
Returns the value of attribute base.
104 105 106 |
# File 'lib/string_builder.rb', line 104 def base @base end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
105 106 107 |
# File 'lib/string_builder.rb', line 105 def name @name end |
Instance Method Details
#to_s ⇒ Object
114 115 116 |
# File 'lib/string_builder.rb', line 114 def to_s "#{base}.#{name}" end |