Module: Glimmer::Config

Defined in:
lib/glimmer-dsl-xml-ext/glimmer/config.rb

Class Method Summary collapse

Class Method Details

.xml_attribute_underscoreObject



32
33
34
35
36
37
38
# File 'lib/glimmer-dsl-xml-ext/glimmer/config.rb', line 32

def xml_attribute_underscore
  if defined?(@@xml_attribute_underscore) && @@xml_attribute_underscore
    @@xml_attribute_underscore
  else
    @@xml_attribute_underscore = '_'
  end
end

.xml_attribute_underscore=(value) ⇒ Object

Tells Glimmer to automatically convert underscores in xml attribute names into dashes only when passed in as symbols (not strings)



28
29
30
# File 'lib/glimmer-dsl-xml-ext/glimmer/config.rb', line 28

def xml_attribute_underscore=(value)
  @@xml_attribute_underscore = value
end