Sha256: 9021efc8eace454511e92e096b0c4d345ad7ea8bbd24e094ca5563fa95cbb141

Contents?: true

Size: 743 Bytes

Versions: 8

Compression:

Stored size: 743 Bytes

Contents

module RubyApp

  module Elements

    module Pages

      module TestPages
        require 'ruby_app'
        require 'ruby_app/elements'

        class ButtonTestPage < RubyApp::Elements::Pages::BlankPage

          template_path(:all, File.dirname(__FILE__))

          def initialize
            super

            @markdown = RubyApp::Elements::Markdown.new

            @button = RubyApp::Elements::Button.new
            @button.clicked do |element, event|
              require 'ruby_app/elements/pages/test_pages/linked_test_page'
              RubyApp::Session.pages.push(RubyApp::Elements::Pages::TestPages::LinkedTestPage.new)
              event.refresh
            end

          end

        end

      end

    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.6 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.5 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.4 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.3 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.2 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.1 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.2.0 lib/ruby_app/elements/pages/test_pages/button_test_page.rb