Sha256: c1aaeb0c9f865569a249c5828bf230988c6bb5a1ee8ffdd372ce74b9360c34b8

Contents?: true

Size: 850 Bytes

Versions: 70

Compression:

Stored size: 850 Bytes

Contents

module RubyApp

  module Elements

    module Pages

      module TestPages
        require 'ruby_app/elements/button'
        require 'ruby_app/elements/markdown'
        require 'ruby_app/elements/pages/blank_page'
        require 'ruby_app/elements/pages/test_pages/linked_test_page'
        require 'ruby_app/session'

        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|
              RubyApp::Session.pages.push(RubyApp::Elements::Pages::TestPages::LinkedTestPage.new)
              event.refresh
            end

          end

        end

      end

    end

  end

end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
RubyApp-0.0.18 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.17 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.16 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.15 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.14 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.13 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.12 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.11 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.10 lib/ruby_app/elements/pages/test_pages/button_test_page.rb
RubyApp-0.0.9 lib/ruby_app/elements/pages/test_pages/button_test_page.rb