Class: LanguageParser::PrototypeArgument
- Inherits:
-
Object
- Object
- LanguageParser::PrototypeArgument
- Defined in:
- lib/cgialib/lp/Language.rb
Overview
class : PrototypeArgument
This class represents arguments on the prototype.
Instance Attribute Summary collapse
-
#name ⇒ Object
The argument name.
-
#type ⇒ Object
The argument type.
Instance Method Summary collapse
-
#initialize ⇒ PrototypeArgument
constructor
initialie().
-
#to_s ⇒ Object
to_s().
Constructor Details
#initialize ⇒ PrototypeArgument
initialie()
Constucts the argument object
183 184 185 186 187 188 |
# File 'lib/cgialib/lp/Language.rb', line 183 def initialize() @name = nil @type = nil end |
Instance Attribute Details
#name ⇒ Object
The argument name
190 191 192 |
# File 'lib/cgialib/lp/Language.rb', line 190 def name @name end |
#type ⇒ Object
The argument type
191 192 193 |
# File 'lib/cgialib/lp/Language.rb', line 191 def type @type end |
Instance Method Details
#to_s ⇒ Object
to_s()
Turns this argument into a string
197 |
# File 'lib/cgialib/lp/Language.rb', line 197 def to_s() @type ? "#{@name} - #{@type}" : @name; end |