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)
-
- (Object) ng_xml
Returns the value of attribute ng_xml.
Class Method Summary (collapse)
-
+ (Object) delimited_list(values_array, delimiter = ", ")
Transforms an array of values into a string delimited by delimiter.
-
+ (Object) included(klass)
Instance Methods – These methods will be available on instances of classes that include this module.
Instance Attribute Details
- (Object) ng_xml
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
+ (Object) delimited_list(values_array, delimiter = ", ")
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 |
+ (Object) included(klass)
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 |