class Athena::Formats::XML::ElementSpec

Attributes

config[R]
field[R]
name[R]
record[RW]

Public Class Methods

new(name, field, config) click to toggle source
Calls superclass method
    # File lib/athena/formats/xml.rb
234 def initialize(name, field, config)
235   super()
236   @name, @field, @config = name, field, config
237 end

Public Instance Methods

start(context, name, attrs) click to toggle source
Calls superclass method Athena::Formats::XML::BaseSpec#start
    # File lib/athena/formats/xml.rb
239 def start(context, name, attrs)
240   context = super
241   self.record = Athena::Record[field, config]
242   context
243 end
text(context, data) click to toggle source
Calls superclass method Athena::Formats::XML::BaseSpec#text
    # File lib/athena/formats/xml.rb
245 def text(context, data)
246   context = super
247   record.update(name, data)
248   context
249 end