Sha256: d8161fd20d3968361af4e03dce5a40495c939aad7adeb9f2add05a5c83d51cde

Contents?: true

Size: 444 Bytes

Versions: 73

Compression:

Stored size: 444 Bytes

Contents

module RubyApp

  module Elements

    module Navigation
      require 'ruby_app/elements/button'
      require 'ruby_app/session'

      class BackButton < RubyApp::Elements::Button

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

        def initialize
          super

          self.clicked do |element, event|
            RubyApp::Session.pages.pop
            event.refresh
          end

        end

      end

    end

  end

end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
RubyApp-0.0.18 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.17 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.16 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.15 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.14 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.13 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.12 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.11 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.10 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.9 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.8 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.7 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.6 lib/ruby_app/elements/navigation/back_button.rb