Class: Caml::Argument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, desc:, type: 'string') ⇒ Argument

Returns a new instance of Argument.



5
6
7
8
9
# File 'lib/caml/argument.rb', line 5

def initialize(name:, desc:, type: 'string')
  @name = name
  @desc = desc
  @type = type
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



3
4
5
# File 'lib/caml/argument.rb', line 3

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/caml/argument.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/caml/argument.rb', line 3

def type
  @type
end