Class: Shul::Shule
- Inherits:
-
Domle
- Object
- Domle
- Shul::Shule
- Defined in:
- lib/shul.rb
Defined Under Namespace
Classes: App, Box, Button, Component, Hbox, Label, Listbox, Listitem, Radio, Radiogroup, Textbox, Vbox
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
Instance Method Summary collapse
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
101 102 103 |
# File 'lib/shul.rb', line 101 def callback @callback end |
Instance Method Details
#create_element(type, attributes = {}) ⇒ Object
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/shul.rb', line 239 def create_element(type, attributes={}) h = { textbox: Shul::Shule::Textbox, radiogroup: Shul::Shule::Radiogroup, radio: Shul::Shule::Radio } data = attributes.delete :data element = h[type.to_sym].new(attributes: attributes, rexle: self) if type == 'radiogroup' and data then data.each {|label, value| element.append_item label, value } end return element end |
#inspect ⇒ Object
260 261 262 |
# File 'lib/shul.rb', line 260 def inspect() "#<Shule:%s>" % [self.object_id] end |