Sha256: 23b9b6eee658d2b7fd7c5b9ad3f86984c05211750c375fbae532215ce80acfdb
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true module ActiveGenerator module Base private def file_name_table file_name.underscore end def file_name_human file_name_table.tr('_', ' ').downcase.capitalize end def namespace name.downcase.split('/')[0...-1] end def namespaced? name.include?('/') end def namespace_human namespace.join(' ').tr('_', ' ').downcase.capitalize end def namespace_table namespace.join('_') end def namespace_path namespace.join('/') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_generator-5.2.0 | lib/active_generator/base.rb |
active_generator-5.1.0 | lib/active_generator/base.rb |
active_generator-5.0.0 | lib/active_generator/base.rb |