Sha256: 1babb60c6795496e547ec48729c5782ee1789832c2eb3b7cf220afb2e9287582

Contents?: true

Size: 474 Bytes

Versions: 24

Compression:

Stored size: 474 Bytes

Contents

require "rd/element"
require "rd/document-struct"
require "rd/visitor"

module RD
  class DummyElement < Element
    attr_accessor :parent

    def children
      []
    end
    
    def each_element
      yield(self)
    end

    def accept(visitor)
      "dummy"
    end
    
    def to_label
      " label "
    end
  end
  
  DummyStruct = DocumentStructure.new
end

class DummyVisitor < RD::Visitor
  def method_missing(method, *args)
    [method.to_s, args]
  end
end

Version data entries

24 entries across 23 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rdtool-0.6.38/test/dummy.rb
tdiary-5.0.8 vendor/bundle/gems/rdtool-0.6.38/test/dummy.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rdtool-0.6.38/test/dummy.rb
tdiary-5.0.5 vendor/bundle/gems/rdtool-0.6.38/test/dummy.rb
tdiary-5.0.4 vendor/bundle/gems/rdtool-0.6.38/test/dummy.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rdtool-0.6.38/test/dummy.rb
tdiary-3.2.2.20130518 vendor/rdtool-0.6.38/test/dummy.rb
tdiary-3.2.2.20130508 vendor/rdtool-0.6.38/test/dummy.rb
tdiary-3.2.2.20130507 vendor/rdtool-0.6.38/test/dummy.rb
rdtool-0.6.38 test/dummy.rb
rdtool-0.6.37 test/dummy.rb
rdtool-0.6.36 test/dummy.rb
rdtool-0.6.35 test/dummy.rb
rdtool-0.6.34 test/dummy.rb
rdtool-0.6.33 test/dummy.rb
rdtool-0.6.32 test/dummy.rb
rdtool-0.6.31 test/dummy.rb
rdtool-0.6.30 test/dummy.rb
rdtool-0.6.29 test/dummy.rb
rdtool-0.6.28 test/dummy.rb