Module: Skellington

Defined in:
lib/skellington/cli.rb,
lib/skellington/helpers.rb,
lib/skellington/version.rb,
lib/skellington/template.rb,
lib/skellington/generator.rb

Defined Under Namespace

Classes: CLI, Generator, Template

Constant Summary collapse

VERSION =
'0.8.9'

Class Method Summary collapse

Class Method Details

.camelise(worm_case) ⇒ Object



2
3
4
# File 'lib/skellington/helpers.rb', line 2

def self.camelise worm_case
  worm_case.split('_').map! { |word| "#{word[0].upcase}#{word[1..-1]}" }.join ''
end

.unslash(word) ⇒ Object



6
7
8
9
# File 'lib/skellington/helpers.rb', line 6

def self.unslash word
  return word[2..-1] if word[0..1] == './'
  word
end