Module: OM::XML
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/om.rb,
lib/om/xml.rb,
lib/om/xml/dynamic_node.rb
Defined Under Namespace
Modules: ClassMethods, Container, Document, NodeGenerator, TermBuilder, TermValueOperators, TermXpathGenerator, TerminologyBasedSolrizer, Validation Classes: DynamicNode, NamedTermProxy, ParentNodeNotFoundError, TemplateMissingException, TemplateRegistry, Term, Terminology, Vocabulary
Instance Attribute Summary collapse
-
#ng_xml ⇒ Object
Returns the value of attribute ng_xml.
Class Method Summary collapse
-
.delimited_list(values_array, delimiter = ", ") ⇒ Object
Transforms an array of values into a string delimited by
delimiter
. -
.included(klass) ⇒ Object
Instance Methods – These methods will be available on instances of classes that include this module.
Instance Attribute Details
#ng_xml ⇒ Object
Returns the value of attribute ng_xml.
20 21 22 |
# File 'lib/om/xml.rb', line 20 def ng_xml @ng_xml end |
Class Method Details
.delimited_list(values_array, delimiter = ", ") ⇒ Object
Transforms an array of values into a string delimited by delimiter
25 26 27 |
# File 'lib/om/xml.rb', line 25 def self.delimited_list( values_array, delimiter=", ") values_array.join(delimiter) end |
.included(klass) ⇒ Object
Instance Methods – These methods will be available on instances of classes that include this module
51 52 53 54 55 |
# File 'lib/om/xml.rb', line 51 def self.included(klass) klass.extend(ClassMethods) klass.send(:include, OM::XML::Container) klass.send(:include, OM::XML::Validation) end |