Sha256: ec89c79fd73b400d10cce6dcd7b6fb3d656259604f0a5cd931503671dd8d7354

Contents?: true

Size: 738 Bytes

Versions: 18

Compression:

Stored size: 738 Bytes

Contents

module RubyApp

  module Elements

    module Pages
      require 'ruby_app/elements/markdown'
      require 'ruby_app/elements/pages/blank_page'
      require 'ruby_app/elements/pages/test_pages/default_test_page'

      class DefaultPage < RubyApp::Elements::Pages::BlankPage

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

        def initialize
          super

          @markdown = RubyApp::Elements::Markdown.new
          @markdown.clicked do |element, event|
            case event.name
              when 'go_test'
                RubyApp::Session.pages.push(RubyApp::Elements::Pages::TestPages::DefaultTestPage.new)
                event.refresh
            end
          end

        end

      end

    end

  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
RubyApp-0.0.26 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.25 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.24 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.23 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.22 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.21 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.20 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.19 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.18 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.17 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.16 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.15 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.14 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.13 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.12 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.11 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.10 lib/ruby_app/elements/pages/default_page.rb
RubyApp-0.0.9 lib/ruby_app/elements/pages/default_page.rb