Sha256: e0b2fd8e44f13f205e947557ade6505836dad9754475a52ae9d84f4a1f88f24d
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
module ActiveGenerator module Base private def file_name_table file_name.tableize end def namespace name.downcase.split("/").delete_last end def namespaced? name.include?("/") end def namespace_human namespace.map { |w| w.capitalize }.join(" ") end def namespace_table namespace.join("_") end def namespace_path namespace.join("/") if namespaced? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_generator-2.0.0 | lib/active_generator/base.rb |
active_generator-1.0.1 | lib/active_generator/base.rb |
active_generator-1.0.0 | lib/active_generator/base.rb |