Class: RDF::XML::Reader
- Inherits:
-
Reader
- Object
- Reader
- RDF::XML::Reader
- Defined in:
- lib/xml/reader.rb
Instance Method Summary collapse
-
#each_statement(&block) ⇒ Object
[-].
-
#each_triple(&block) ⇒ Object
[-].
-
#initialize(input = $stdin, options = {}) {|_self| ... } ⇒ Reader
constructor
[-].
Constructor Details
Instance Method Details
#each_statement(&block) ⇒ Object
- -
32 33 34 35 36 37 |
# File 'lib/xml/reader.rb', line 32 def each_statement(&block) return unless block_given? each_triple do |*triple| yield RDF::Statement.new(*triple) end end |