Sha256: 7bc995c80430db01b56b4e22c7c23cc398ca9f54c4f25483f8af6321eaf70f29

Contents?: true

Size: 744 Bytes

Versions: 145

Compression:

Stored size: 744 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'ruby-event'

module RubyApp

  module Elements

    module Mobile
      require 'ruby_app/element'

      class Click < RubyApp::Element

        class ClickedEvent < RubyApp::Element::Event

          def initialize(data)
            super(data)
          end

        end

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

        event :clicked

        def initialize
          super
        end

        protected

          def on_event(event)
            on_clicked(event) if event.is_a?(RubyApp::Elements::Mobile::Click::ClickedEvent)
            super(event)
          end

          def on_clicked(event)
            clicked(event)
          end

      end

    end

  end

end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.15 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.14 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.13 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.12 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.11 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.10 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.9 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.5 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.4 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.3 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.2 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.1 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.7.0 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.71 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.70 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.69 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.68 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.67 lib/ruby_app/elements/mobile/click.rb
RubyApp-0.6.66 lib/ruby_app/elements/mobile/click.rb