Class: Shul::Main
- Inherits:
-
Object
- Object
- Shul::Main
- Defined in:
- lib/shul.rb
Instance Method Summary collapse
-
#initialize(shoes, xml) ⇒ Main
constructor
A new instance of Main.
Constructor Details
#initialize(shoes, xml) ⇒ Main
Returns a new instance of Main.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/shul.rb', line 53 def initialize(shoes, xml) doc = Rexle.new xml attr = doc.root.attributes.to_h bflag = if attr.has_key? :width and attr.has_key? :height then attr[:width] = attr[:width].to_i attr[:height] = attr[:height].to_i false else true end shoes.app(attr) do shul = Shul::App.new self, doc, refresh: bflag, attributes: attr end end |