lib/cucumber/helpers/core_ext.rb
# Converts a string to snake_case or SNAKE_CASE.
Converts a string to snake_case or SNAKE_CASE.
Converts a string to snake_case or SNAKE_CASE .
def snake_case(casing = :lower)
    s = self.tr(" ", "_")
    case casing
    when :lower then s.downcase 
    when :upper then s.upcase
    else raise ArgumentError, "unsupported casing"
    end
  end
def snake_case ( casing = :lower ) s = self . tr ( " " , "_" ) case casing when :lower then s . downcase when :upper then s . upcase else raise ArgumentError , "unsupported casing" end end
Converts a string to snake_case or SNAKE_CASE.
Converts a string to snake_case or SNAKE_CASE .
casing
<not_specific>