Class: Caml::Argument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Argument

Returns a new instance of Argument.



97
98
99
100
101
# File 'lib/caml/caml.rb', line 97

def initialize(options ={})
  @name = options['name']
  @desc = options['desc']
  @type = options['type']
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



95
96
97
# File 'lib/caml/caml.rb', line 95

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



95
96
97
# File 'lib/caml/caml.rb', line 95

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



95
96
97
# File 'lib/caml/caml.rb', line 95

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



95
96
97
# File 'lib/caml/caml.rb', line 95

def value
  @value
end

Instance Method Details

#to_sObject



103
104
105
# File 'lib/caml/caml.rb', line 103

def to_s
    inspect
end