Sha256: 1b615c5bdf6860860f567c5326856c204a56cc01ce563f01866ad0ec0d33a87d

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

require 'at_coder_friends'

module AtCoderVcFriends
  # Holds applicaion global information
  # - command line options
  # - target path
  # - configuration
  # - application modules
  class Context < AtCoderFriends::Context
    def initialize(options, path)
      @options = options
      @path_info = AtCoderVcFriends::PathInfo.new(File.expand_path(path))
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
at_coder_vc_friends-0.1.1 lib/at_coder_vc_friends/context.rb
at_coder_vc_friends-0.1.0 lib/at_coder_vc_friends/context.rb