Module: Locomotive::XML

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_xmlObject



41
42
43
# File 'lib/locomotive/utils/xml.rb', line 41

def to_xml
  "#{self.class.to_s.split("::").last.downcase}".to_sym
end