Class: String

Inherits:
Object show all
Defined in:
lib/uttk/streams.rb,
lib/uttk/loaders/Loader.rb

Direct Known Subclasses

StyledString

Instance Method Summary collapse

Instance Method Details

#compare_stream(stream) ⇒ Object



45
46
47
# File 'lib/uttk/streams.rb', line 45

def compare_stream ( stream )
  self == stream.read
end

#testify(symtbl, &block) ⇒ Object



88
89
90
91
92
93
# File 'lib/uttk/loaders/Loader.rb', line 88

def testify ( symtbl, &block )
  unless symtbl.has_key? :loader
    raise ArgumentError, "No loader found in options (:loader)"
  end
  symtbl[:loader].load(self, symtbl).testify(symtbl, &block)
end