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, #type

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.



91
92
93
94
# File 'lib/xforms/control.rb', line 91

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

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end