Class: XForms::Item

Inherits:
Object show all
Includes:
Label
Defined in:
lib/xforms/control.rb

Instance Attribute Summary collapse

Attributes included from Label

#label

Instance Method Summary collapse

Constructor Details

#initialize(form, label = nil, value = nil) ⇒ Item

Returns a new instance of Item.



102
103
104
105
106
# File 'lib/xforms/control.rb', line 102

def initialize(form, label = nil, value = nil)
  @form = form
  @label = label
  @value = value
end

Instance Attribute Details

#formObject

Returns the value of attribute form.



98
99
100
# File 'lib/xforms/control.rb', line 98

def form
  @form
end

#valueObject

Returns the value of attribute value.



99
100
101
# File 'lib/xforms/control.rb', line 99

def value
  @value
end