class Gambiarra::UI::BaseView

Public Instance Methods

project_constant() click to toggle source
# File lib/gambiarra/ui/base_view.rb, line 18
def project_constant
  project_name.gsub('-', '_').camelize
end
project_name() click to toggle source
# File lib/gambiarra/ui/base_view.rb, line 14
def project_name
  Dir.pwd.split('/').last
end
thor() click to toggle source
# File lib/gambiarra/ui/base_view.rb, line 4
def thor
  @thor ||= begin
    thor_class = Class.new(Thor::Group) do
      include Thor::Actions
    end
    .tap { |t| t.source_root("#{Dir.pwd}") }
    .new
  end
end