Class: Shul::Shule::Textbox

Inherits:
Component show all
Defined in:
lib/shul.rb

Instance Method Summary collapse

Methods inherited from Box

#append_child, #deep_clone, #remove

Constructor Details

#initialize(name = 'textbox', attributes: nil, rexle: nil) ⇒ Textbox

Returns a new instance of Textbox.



207
208
209
210
211
212
# File 'lib/shul.rb', line 207

def initialize(name='textbox', attributes: nil, rexle: nil)

  h = {value: '', size: '40'}
  h.merge!(attributes) if attributes
  super(name, attributes: h, rexle: rexle)
end