Class: AtCoderVcFriends::Context

Inherits:
AtCoderFriends::Context
  • Object
show all
Defined in:
lib/at_coder_vc_friends/context.rb

Overview

Holds applicaion global information

  • command line options

  • target path

  • configuration

  • application modules

Instance Method Summary collapse

Constructor Details

#initialize(options, path) ⇒ Context

Returns a new instance of Context.



12
13
14
15
# File 'lib/at_coder_vc_friends/context.rb', line 12

def initialize(options, path)
  @options = options
  @path_info = AtCoderVcFriends::PathInfo.new(File.expand_path(path))
end

Instance Method Details

#scraping_agentObject



17
18
19
# File 'lib/at_coder_vc_friends/context.rb', line 17

def scraping_agent
  @scraping_agent ||= AtCoderVcFriends::Scraping::Agent.new(self)
end