Module: OM::XML
- Defined in:
- lib/om.rb,
lib/om/xml.rb
Defined Under Namespace
Modules: ClassMethods, Container, Document, NodeGenerator, TermValueOperators, TermXpathGenerator, Validation Classes: NamedTermProxy, ParentNodeNotFoundError, 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.
16 17 18 |
# File 'lib/om/xml.rb', line 16 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
21 22 23 |
# File 'lib/om/xml.rb', line 21 def self.delimited_list( values_array, delimiter=", ") result = values_array.collect{|a| a + delimiter}.to_s.chomp(delimiter) end |
.included(klass) ⇒ Object
Instance Methods – These methods will be available on instances of classes that include this module
47 48 49 50 51 |
# File 'lib/om/xml.rb', line 47 def self.included(klass) klass.extend(ClassMethods) klass.send(:include, OM::XML::Container) klass.send(:include, OM::XML::Validation) end |