Class: FormReader::Option

Inherits:
Object show all
Defined in:
lib/web/formreader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, selected) ⇒ Option

Returns a new instance of Option.



102
103
104
# File 'lib/web/formreader.rb', line 102

def initialize( value, selected )
  @value = value; @selected = selected
end

Instance Attribute Details

#selectedObject

Returns the value of attribute selected.



101
102
103
# File 'lib/web/formreader.rb', line 101

def selected
  @selected
end

#valueObject

Returns the value of attribute value.



101
102
103
# File 'lib/web/formreader.rb', line 101

def value
  @value
end