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.



88
89
90
91
92
# File 'lib/xforms/control.rb', line 88

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

Instance Attribute Details

#formObject

Returns the value of attribute form.



84
85
86
# File 'lib/xforms/control.rb', line 84

def form
  @form
end

#valueObject

Returns the value of attribute value.



85
86
87
# File 'lib/xforms/control.rb', line 85

def value
  @value
end