Class: SnakeCase

Inherits:
TokenString::Format show all
Defined in:
lib/token_string.rb

Instance Method Summary collapse

Methods inherited from TokenString::Format

#convert_from, #convert_to, #validate

Instance Method Details

#join(tokens) ⇒ Object



198
# File 'lib/token_string.rb', line 198

def join(tokens);    tokens.join('_');   end

#process(token) ⇒ Object



197
# File 'lib/token_string.rb', line 197

def process(token);   token.downcase;  end

#tokenize(str) ⇒ Object



196
# File 'lib/token_string.rb', line 196

def tokenize(str);          str.split( /_+/);  end