Sha256: 8bee14f75da1810be0bc5fe4fdf8619712c266c8d270e1138948d64997727bc5

Contents?: true

Size: 243 Bytes

Versions: 6

Compression:

Stored size: 243 Bytes

Contents

class HomePage < UnderOs::Page

  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
under-os-1.4.0 app/pages/home_page.rb
under-os-1.3.0 app/pages/home_page.rb
under-os-1.2.1 app/pages/home_page.rb
under-os-1.2.0 app/pages/home_page.rb
under-os-1.1.0 app/pages/home_page.rb
under-os-1.0.0 app/pages/home_page.rb