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.91 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.90 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.89 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.88 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.87 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.86 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.85 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.84 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.83 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.82 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.81 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.80 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.79 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.78 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.77 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.76 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.75 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.74 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.73 lib/ruby_app/elements/navigation/back_button.rb
RubyApp-0.0.72 lib/ruby_app/elements/navigation/back_button.rb