Top Level Namespace

Defined Under Namespace

Modules: LifecycleCallbacks, PlainAccessors, RoxmlSubclassHelpers, Utils Classes: AttrJob, BaseCleanroom, DslBuilder, DslRuntime, Extractor, Extractor2, ROXMLDiff, RootCleanroom, RoxmlBuilder, SexpDslBuilder

Instance Method Summary collapse

Instance Method Details

#name_to_sym_helper(name, lower_case = false) ⇒ Object



4
5
6
7
8
# File 'lib/roundtrip_xml/utils.rb', line 4

def name_to_sym_helper(name, lower_case = false)
  new_name = name.split('-').collect(&:capitalize).join
    new_name[0] = new_name[0].downcase! if lower_case
    new_name.to_sym
end