Class: CSL::Parser
Overview
A relatively straightforward XML parser that parses CSL using either Nokogiri or REXML.
Class Attribute Summary collapse
-
.engines ⇒ Object
readonly
Returns the value of attribute engines.
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse(*arguments) ⇒ Object
- #parse!(source, scope = Node) ⇒ Object
Constructor Details
Class Attribute Details
.engines ⇒ Object (readonly)
Returns the value of attribute engines.
24 25 26 |
# File 'lib/csl/parser.rb', line 24 def engines @engines end |
Instance Attribute Details
#parser ⇒ Object
Returns the value of attribute parser.
9 10 11 |
# File 'lib/csl/parser.rb', line 9 def parser @parser end |
Instance Method Details
#parse(*arguments) ⇒ Object
35 36 37 38 39 |
# File 'lib/csl/parser.rb', line 35 def parse(*arguments) parse!(*arguments) rescue nil end |