Class: ConstCase

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



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

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

#process(token) ⇒ Object



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

def process(token);   token.upcase;  end

#tokenize(str) ⇒ Object



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

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