Sha256: 3c69f71ab8673ce11977c2d850e35098775ad7ab9ba65ea76c1bd2789a7781d4
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
module ActiveGenerator module Base private def file_name_table file_name.underscore end def file_name_human file_name_table.gsub("_".freeze, " ".freeze).downcase.capitalize end def namespace name.downcase.split("/".freeze)[0...-1] end def namespaced? name.include?("/".freeze) end def namespace_human namespace.join(" ".freeze).gsub("_".freeze, " ".freeze).downcase.capitalize end def namespace_table namespace.join("_".freeze) end def namespace_path namespace.join("/".freeze) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-3.0.0 | lib/active_generator/base.rb |