Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/babygitter/addendums/ruby_addendum.rb

Instance Method Summary collapse

Instance Method Details

#underscoreObject

Convience method for underscoring whitespace in a string



13
14
15
# File 'lib/babygitter/addendums/ruby_addendum.rb', line 13

def underscore
  gsub(/ /, "_")
end