Class: MethodCallToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



106
107
108
# File 'lib/string_builder.rb', line 106

def args
  @args
end

#baseObject (readonly)

Returns the value of attribute base.



104
105
106
# File 'lib/string_builder.rb', line 104

def base
  @base
end

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



114
115
116
# File 'lib/string_builder.rb', line 114

def to_s
  "#{base}.#{name}"
end