Class: Shul::Shule::Textbox
- Defined in:
- lib/shul.rb
Instance Method Summary collapse
-
#initialize(name = 'textbox', attributes: nil, rexle: nil) ⇒ Textbox
constructor
A new instance of Textbox.
Methods inherited from Box
#append_child, #deep_clone, #obj, #obj=, #remove
Constructor Details
#initialize(name = 'textbox', attributes: nil, rexle: nil) ⇒ Textbox
Returns a new instance of Textbox.
230 231 232 233 234 235 |
# File 'lib/shul.rb', line 230 def initialize(name='textbox', attributes: nil, rexle: nil) h = {value: '', size: '40'} h.merge!(attributes) if attributes super(name, attributes: h, rexle: rexle) end |