Class: Interface::Argument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Argument

Returns a new instance of Argument.



23
24
25
26
27
# File 'lib/interface/interface.rb', line 23

def initialize(params)
  params.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#descObject

Returns the value of attribute desc.



21
22
23
# File 'lib/interface/interface.rb', line 21

def desc
  @desc
end

#keyObject

Returns the value of attribute key.



21
22
23
# File 'lib/interface/interface.rb', line 21

def key
  @key
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/interface/interface.rb', line 21

def type
  @type
end

#valueObject

Returns the value of attribute value.



21
22
23
# File 'lib/interface/interface.rb', line 21

def value
  @value
end