Object
# File lib/sax-machine/sax_collection_config.rb, line 7 def initialize(name, options) @name = name.to_s @class = options[:class] @as = options[:as].to_s @with = options.fetch(:with, {}) end
# File lib/sax-machine/sax_collection_config.rb, line 14 def accessor as end
# File lib/sax-machine/sax_collection_config.rb, line 18 def attrs_match?(attrs) @with.all? do |key, value| value === attrs[key.to_s] end end
# File lib/sax-machine/sax_collection_config.rb, line 24 def data_class @class || @name end
# File lib/sax-machine/sax_collection_config.rb, line 30 def as @as end
[Validate]
Generated with the Darkfish Rdoc Generator 2.