Class: Shul
- Inherits:
-
Object
- Object
- Shul
- Defined in:
- lib/shul.rb
Instance Method Summary collapse
- #button(h) ⇒ Object
-
#initialize(shoes, source) ⇒ Shul
constructor
A new instance of Shul.
Constructor Details
#initialize(shoes, source) ⇒ Shul
Returns a new instance of Shul.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/shul.rb', line 35 def initialize(shoes, source) @shoes = shoes xml, _ = RXFHelper.read(source) doc = Rexle.new(xml) doc.root.traverse do |x| method(x.name.to_sym).call(x.attributes) end end |
Instance Method Details
#button(h) ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/shul.rb', line 46 def (h) label = h[:label] command = h[:oncommand] @shoes. 'label' do eval command if command end end |