home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ruby164.zip
/
rbemx164.zip
/
ruby
/
share
/
doc
/
rdtool-0.6.10
/
test
/
dummy.rb
< prev
next >
Wrap
Text File
|
2001-06-06
|
474b
|
34 lines
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