Class: MethodCallToken
- Inherits:
-
Object
- Object
- MethodCallToken
- Defined in:
- lib/string_builder/core.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.
8 9 10 11 12 |
# File 'lib/string_builder/core.rb', line 8 def initialize(base, name, args) @base = base @name = name @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/string_builder/core.rb', line 6 def args @args end |
#base ⇒ Object (readonly)
Returns the value of attribute base.
4 5 6 |
# File 'lib/string_builder/core.rb', line 4 def base @base end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/string_builder/core.rb', line 5 def name @name end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/string_builder/core.rb', line 14 def to_s "#{base}.#{name}" end |