Sha256: 207313562b2616f2295775f1de448c780d1b790f9493d9ff08b5cadae15b1bb8
Contents?: true
Size: 404 Bytes
Versions: 26
Compression:
Stored size: 404 Bytes
Contents
require 'yaml' require 'erb' module Forklift module Base class Utils def load_yml(file) YAML.load(ERB.new(File.read(file)).result) end def class_name_from_file(file) klass = "" words = file.split("/").last.split(".").first.split("_") words.each do |word| klass << word.capitalize end klass end end end end
Version data entries
26 entries across 26 versions & 1 rubygems