Class: HomePage

Inherits:
UnderOs::Page
  • Object
show all
Defined in:
app/pages/home_page.rb

Instance Method Summary collapse

Constructor Details

#initializeHomePage

Returns a new instance of HomePage.



3
4
5
6
7
8
9
10
# File 'app/pages/home_page.rb', line 3

def initialize
  find('#buttons button').each do |button|
    button.on :tap do
      page = (button.data('page').capitalize + "Page").constantize
      history << page.new
    end
  end
end