Class: Athena::Formats::XML::RecordSpec
- Defined in:
- lib/athena/formats/xml.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
- #done(context, name) ⇒ Object
-
#initialize(parser) ⇒ RecordSpec
constructor
A new instance of RecordSpec.
- #start(context, name, attrs) ⇒ Object
Methods inherited from BaseSpec
Methods included from Util
Constructor Details
#initialize(parser) ⇒ RecordSpec
Returns a new instance of RecordSpec.
203 204 205 206 207 |
# File 'lib/athena/formats/xml.rb', line 203 def initialize(parser) super() @parser = parser end |
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
200 201 202 |
# File 'lib/athena/formats/xml.rb', line 200 def parser @parser end |
#record ⇒ Object
Returns the value of attribute record.
201 202 203 |
# File 'lib/athena/formats/xml.rb', line 201 def record @record end |
Instance Method Details
#done(context, name) ⇒ Object
215 216 217 218 219 |
# File 'lib/athena/formats/xml.rb', line 215 def done(context, name) super record.close end |