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