Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Created January 21, 2010 03:32
Show Gist options
  • Save mxriverlynn/282555 to your computer and use it in GitHub Desktop.
Save mxriverlynn/282555 to your computer and use it in GitHub Desktop.
class Symbol
def to_setting
self.to_s.gsub("_", " ").gsub(/\b\w/){$&.upcase}.gsub(" ", "")
end
end
:output_dir.to_setting #=> "OutputDir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment