Sha256: d715678a4820559bd5757f8931a63d10f65b3d49b578de2b7d695834f80359f6
Contents?: true
Size: 453 Bytes
Versions: 13
Compression:
Stored size: 453 Bytes
Contents
require "godmin/generators/base" module Godmin module Generators class NamedBase < Base argument :name, type: :string private def class_name @class_name ||= name.classify end def class_path @class_path ||= namespaced_path + name.classify.deconstantize.split("::").map(&:underscore) end def file_name @file_name ||= class_name.demodulize.underscore end end end end
Version data entries
13 entries across 13 versions & 1 rubygems