Sha256: 48425679bf11108da583804a8d9b28a654eab9d4e4c1ba88d8bdfdb1aa2a1e17

Contents?: true

Size: 678 Bytes

Versions: 18

Compression:

Stored size: 678 Bytes

Contents

require 'rabbit/element/base'
require 'rabbit/element/text-container-element'

module Rabbit
  module Element
    class WaitTag
      include Base

      def have_wait_tag?
        true
      end

      def text
        ""
      end

      def markuped_text
        ""
      end

      def to_html(generator)
        ""
      end

      def draw_element(canvas, x, y, w, h, simulation)
        [x, y, w, h]
      end
    end

    class CustomTag
      include TextContainerElement

      attr_reader :name
      def initialize(name, elements=[])
        super(elements)
        @name = name
      end

      def have_tag?(name)
        @name == name
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/element/tag.rb
rabbit-3.0.2 lib/rabbit/element/tag.rb
rabbit-3.0.1 lib/rabbit/element/tag.rb
rabbit-3.0.0 lib/rabbit/element/tag.rb
rabbit-2.2.1 lib/rabbit/element/tag.rb
rabbit-2.2.0 lib/rabbit/element/tag.rb
rabbit-2.1.9 lib/rabbit/element/tag.rb
rabbit-2.1.8 lib/rabbit/element/tag.rb
rabbit-2.1.7 lib/rabbit/element/tag.rb
rabbit-2.1.6 lib/rabbit/element/tag.rb
rabbit-2.1.5 lib/rabbit/element/tag.rb
rabbit-2.1.4 lib/rabbit/element/tag.rb
rabbit-2.1.3 lib/rabbit/element/tag.rb
rabbit-2.1.2 lib/rabbit/element/tag.rb
rabbit-2.1.1 lib/rabbit/element/tag.rb
rabbit-2.1.0 lib/rabbit/element/tag.rb
rabbit-2.0.9 lib/rabbit/element/tag.rb
rabbit-2.0.8 lib/rabbit/element/tag.rb