class Greeve::Rowset
Represents an XML `rowset` element.
Attributes
name[R]
@return [Symbol] name of the rowset
Public Class Methods
new(name, xml_element, &block)
click to toggle source
@param name [Symbol] name of the rowset @param xml_element [Ox::Element] the xml rowset element for this item @yield a block containing the attribute definitions for {Row}
# File lib/greeve/rowset.rb, line 16 def initialize(name, xml_element, &block) @name = name @xml_element = xml_element @attributes = {} @rows = nil # Load the attribute configuration in the rowset block. instance_eval(&block) # Disable the #attribute method since the attributes have been configured. define_singleton_method(:attribute) { raise NoMethodError, "private method" } end