Class: NavbarPage
- Inherits:
-
UnderOs::Page
- Object
- UnderOs::Page
- NavbarPage
- Defined in:
- app/pages/navbar_page.rb
Instance Method Summary collapse
-
#initialize ⇒ NavbarPage
constructor
A new instance of NavbarPage.
Constructor Details
#initialize ⇒ NavbarPage
Returns a new instance of NavbarPage.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/pages/navbar_page.rb', line 2 def initialize find('#buttons button').each do || .on :tap do if .hasClass('icons') . = @icons = .data('icons').split(',').map do |type| UnderOs::UI::Icon.new(type: type) end else . = {}.tap do |hash| .data('icons').split(',').map do |type| hash[type] = Proc.new{ p type } end end end end end end |