Sha256: 9bde3eaa016e0a2e312be3716464717bb68d13daa98f81e1bd51de7537329270
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true require 'gunter/model/git' require 'gunter/model/project' require 'gunter/model/template' module Gunter module Models class << self # Get model class by name # @param name [Symbol] the model name def model(name) Gunter::Model.const_get(name.to_s.split('_').map(&:capitalize).join) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gunter-0.1.0 | lib/gunter/models.rb |