Class: AtCoderVcFriends::Context
- Inherits:
-
AtCoderFriends::Context
- Object
- AtCoderFriends::Context
- AtCoderVcFriends::Context
- 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
-
#initialize(options, path) ⇒ Context
constructor
A new instance of Context.
- #scraping_agent ⇒ Object
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(, path) @options = @path_info = AtCoderVcFriends::PathInfo.new(File.(path)) end |
Instance Method Details
#scraping_agent ⇒ Object
17 18 19 |
# File 'lib/at_coder_vc_friends/context.rb', line 17 def scraping_agent @scraping_agent ||= AtCoderVcFriends::Scraping::Agent.new(self) end |