Module: Locomotive::XML
- Included in:
- RelationalAlgebra::AttachItem, RelationalAlgebra::AttributeColumnStructure, RelationalAlgebra::ColumnStructure, RelationalAlgebra::LiteralList, RelationalAlgebra::OffsetType, RelationalAlgebra::Operator, RelationalAlgebra::Predicate, RelationalAlgebra::PredicateList, RelationalAlgebra::ProjectList, RelationalAlgebra::QueryPlan, RelationalAlgebra::QueryPlanBundle, RelationalAlgebra::RAtomic, RelationalAlgebra::RType, RelationalAlgebra::Schema, RelationalAlgebra::SerializeRelation, RelationalAlgebra::SortList
- Defined in:
- lib/locomotive/utils/xml.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 |
# File 'lib/locomotive/utils/xml.rb', line 5 def self.included(klass) klass.extend ClassMethods end |
Instance Method Details
#quote(val) ⇒ Object
37 38 39 |
# File 'lib/locomotive/utils/xml.rb', line 37 def quote(val) "\"#{val}\"" end |
#to_xml ⇒ Object
41 42 43 |
# File 'lib/locomotive/utils/xml.rb', line 41 def to_xml "#{self.class.to_s.split("::").last.downcase}".to_sym end |