Class: LanguageParser::PrototypeArgument

Inherits:
Object
  • Object
show all
Defined in:
lib/cgialib/lp/Language.rb

Overview

class : PrototypeArgument

This class represents arguments on the prototype.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePrototypeArgument

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

#nameObject

The argument name



190
191
192
# File 'lib/cgialib/lp/Language.rb', line 190

def name
  @name
end

#typeObject

The argument type



191
192
193
# File 'lib/cgialib/lp/Language.rb', line 191

def type
  @type
end

Instance Method Details

#to_sObject

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