Module: Sprinkles

Defined in:
lib/sprinkles.rb,
lib/sprinkles/version.rb

Defined Under Namespace

Modules: Combinator

Constant Summary

SPRINKLE_LIB_DIR =
File.dirname(File.absolute_path(__FILE__))
VERSION =
Version = '0.6.0.alpha'

Class Method Summary (collapse)

Class Method Details

+ (Object) add_to_path(path)



9
10
11
# File 'lib/sprinkles.rb', line 9

def self.add_to_path(path)
  $:.unshift(path) unless $:.include? path
end

+ (Object) require_to_class(_require)



5
6
7
# File 'lib/sprinkles.rb', line 5

def self.require_to_class(_require)
  _require.split('_').map(&:capitalize).join
end