module ActiveGenerator::Base

Private Instance Methods

file_name_human() click to toggle source
# File lib/active_generator/base.rb, line 12
def file_name_human
  file_name_table.tr('_', ' ').downcase.capitalize
end
file_name_table() click to toggle source
# File lib/active_generator/base.rb, line 8
def file_name_table
  file_name.underscore
end
namespace() click to toggle source
# File lib/active_generator/base.rb, line 16
def namespace
  name.downcase.split('/')[0...-1]
end
namespace_human() click to toggle source
# File lib/active_generator/base.rb, line 24
def namespace_human
  namespace.join(' ').tr('_', ' ').downcase.capitalize
end
namespace_path() click to toggle source
# File lib/active_generator/base.rb, line 32
def namespace_path
  namespace.join('/')
end
namespace_table() click to toggle source
# File lib/active_generator/base.rb, line 28
def namespace_table
  namespace.join('_')
end
namespaced?() click to toggle source
# File lib/active_generator/base.rb, line 20
def namespaced?
  name.include?('/')
end