class Athena::Formats::XML::RecordSpec

Attributes

block[R]
record[RW]

Public Class Methods

new(&block) click to toggle source
Calls superclass method
    # File lib/athena/formats/xml.rb
210 def initialize(&block)
211   super()
212   @block = block
213 end

Public Instance Methods

done(context, name) click to toggle source
Calls superclass method Athena::Formats::XML::BaseSpec#done
    # File lib/athena/formats/xml.rb
221 def done(context, name)
222   context = super
223   record.close
224   context
225 end
start(context, name, attrs) click to toggle source
Calls superclass method Athena::Formats::XML::BaseSpec#start
    # File lib/athena/formats/xml.rb
215 def start(context, name, attrs)
216   context = super
217   self.record = Athena::Record.new(nil, block, true)
218   context
219 end