Class: Blakey::Repository::Ruby::RubyVersionFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/blakey/repository/ruby/ruby_version_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(gemfile_lock_parser:, source:) ⇒ RubyVersionFetcher

Returns a new instance of RubyVersionFetcher.



7
8
9
10
# File 'lib/blakey/repository/ruby/ruby_version_fetcher.rb', line 7

def initialize(gemfile_lock_parser:, source:)
  @gemfile_lock_parser = gemfile_lock_parser
  @source              = source
end

Instance Method Details

#versionObject



12
13
14
# File 'lib/blakey/repository/ruby/ruby_version_fetcher.rb', line 12

def version
  format_version(fetched_version)
end