Class: Athena::Formats::XML::RecordSpec
- Defined in:
- lib/athena/formats/xml.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
- #done(context, name) ⇒ Object
-
#initialize(&block) ⇒ RecordSpec
constructor
A new instance of RecordSpec.
- #start(context, name, attrs) ⇒ Object
Methods inherited from BaseSpec
Methods included from Util
Constructor Details
#initialize(&block) ⇒ RecordSpec
Returns a new instance of RecordSpec.
212 213 214 215 216 |
# File 'lib/athena/formats/xml.rb', line 212 def initialize(&block) super() @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
209 210 211 |
# File 'lib/athena/formats/xml.rb', line 209 def block @block end |
#record ⇒ Object
Returns the value of attribute record.
210 211 212 |
# File 'lib/athena/formats/xml.rb', line 210 def record @record end |
Instance Method Details
#done(context, name) ⇒ Object
224 225 226 227 228 |
# File 'lib/athena/formats/xml.rb', line 224 def done(context, name) super record.close end |