Class: Shale::Mapping::Group::XmlGrouping Private
- Inherits:
-
DictGrouping
- Object
- DictGrouping
- Shale::Mapping::Group::XmlGrouping
- Defined in:
- lib/shale/mapping/group/xml_grouping.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class representing mapping group for XML
Instance Method Summary collapse
-
#add(mapping, kind, value) ⇒ Object
private
Add a value to a group.
Methods inherited from DictGrouping
Constructor Details
This class inherits a constructor from Shale::Mapping::Group::DictGrouping
Instance Method Details
#add(mapping, kind, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Add a value to a group
20 21 22 23 |
# File 'lib/shale/mapping/group/xml_grouping.rb', line 20 def add(mapping, kind, value) group = @groups[mapping.group] ||= Xml.new(mapping.method_from, mapping.method_to) group.add(kind, mapping.namespaced_name, value) end |