Sha256: 838210f2e22c8775aab976667b711cdffcdd1aa6b65fd375bf844149b0bc83cf
Contents?: true
Size: 814 Bytes
Versions: 3
Compression:
Stored size: 814 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'ruby-event' module RubyApp module Elements require 'ruby_app/element' class Markdown < RubyApp::Element class NavigatedEvent < 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 :navigated def initialize super end protected def on_event(event) on_navigated(event) if event.is_a?(RubyApp::Elements::Markdown::NavigatedEvent) super(event) end def on_navigated(event) navigated(event) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.0.8 | lib/ruby_app/elements/markdown.rb |
RubyApp-0.0.7 | lib/ruby_app/elements/markdown.rb |
RubyApp-0.0.6 | lib/ruby_app/elements/markdown.rb |