Sha256: 48b6b70b1cf02f720d3308a51ae01cfd568b85aacda6ef618151149f12dea9a9

Contents?: true

Size: 802 Bytes

Versions: 78

Compression:

Stored size: 802 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'ruby-event'

module RubyApp

  module Elements
    require 'ruby_app/element'

    class Markdown < RubyApp::Element

      class ClickedEvent < RubyApp::Element::Event

        attr_reader :name

        def initialize(data)
          super(data)
          @name = data['name']
        end

        def to_hash
          super.merge('name' => @name)
        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::Markdown::ClickedEvent)
          super(event)
        end

        def on_clicked(event)
          clicked(event)
        end

    end

  end

end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
RubyApp-0.0.79 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.78 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.77 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.76 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.75 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.74 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.73 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.72 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.71 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.70 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.69 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.68 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.64 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.63 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.62 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.61 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.60 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.59 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.58 lib/ruby_app/elements/markdown.rb
RubyApp-0.0.57 lib/ruby_app/elements/markdown.rb