Class: Linguist::Command::BaseWithApp

Inherits:
Base
  • Object
show all
Defined in:
lib/linguist_ruby/commands/base.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#args, #autodetected_app

Instance Method Summary collapse

Methods inherited from Base

#app_urls, #escape, #extract_app_from_git_config, #extract_option, #extract_project_title_from_args, #extract_project_title_from_dir_name, #extract_project_title_from_git, #git_remotes, #git_url, #linguist, #project, #project_title

Methods included from Helpers

#ask, #confirm, #confirm_command, #deprecate, #display, #error, #format_date, #git, #has_git?, #home_directory, #redisplay, #retry_on_exception, #run_command, #running_on_a_mac?, #running_on_windows?, #shell

Constructor Details

#initialize(args, linguist = nil) ⇒ BaseWithApp

Returns a new instance of BaseWithApp.



114
115
116
117
# File 'lib/linguist_ruby/commands/base.rb', line 114

def initialize(args, linguist=nil)
  super(args, linguist)
  @app ||= extract_app
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



112
113
114
# File 'lib/linguist_ruby/commands/base.rb', line 112

def app
  @app
end