Class: Riddl::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Option

Returns a new instance of Option.



4
5
6
7
# File 'lib/ruby/riddl/option.rb', line 4

def initialize(name,value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ruby/riddl/option.rb', line 3

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/ruby/riddl/option.rb', line 3

def value
  @value
end