Class: Shul::Shule::Radio

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 = 'radio', attributes: nil, rexle: nil) ⇒ Radio

Returns a new instance of Radio.



194
195
196
197
198
199
# File 'lib/shul.rb', line 194

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

  h = {label: '', value: ''}
  h.merge!(attributes) if attributes
  super(name, attributes: VisualAttributes.new(h), rexle: rexle)
end