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, line 210
def initialize(&block)
  super()
  @block = block
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, line 221
def done(context, name)
  context = super
  record.close
  context
end
start(context, name, attrs) click to toggle source
Calls superclass method Athena::Formats::XML::BaseSpec#start
# File lib/athena/formats/xml.rb, line 215
def start(context, name, attrs)
  context = super
  self.record = Athena::Record.new(nil, block, true)
  context
end