Class: XForms::Select1

Inherits:
Control show all
Defined in:
lib/xforms/control.rb

Instance Attribute Summary collapse

Attributes inherited from Control

#binding, #constraint, #constraint_message, #form, #readonly, #relevant

Attributes included from Label

#label

Instance Method Summary collapse

Methods inherited from Control

#relevant?, #valid?, #value, #value=

Constructor Details

#initialize(form) ⇒ Select1

Returns a new instance of Select1.



77
78
79
80
# File 'lib/xforms/control.rb', line 77

def initialize(form)
  super
  @items = []
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



75
76
77
# File 'lib/xforms/control.rb', line 75

def items
  @items
end