class BundlerVendoredPostIt::PostIt::Parser
Constants
- BUNDLED_WITH
Public Class Methods
new(file)
click to toggle source
# File lib/bundler/vendor/postit/lib/postit/parser.rb, line 5 def initialize(file) @file = file end
Public Instance Methods
parse()
click to toggle source
# File lib/bundler/vendor/postit/lib/postit/parser.rb, line 12 def parse return unless lockfile = File.file?(@file) && File.read(@file) if lockfile =~ BUNDLED_WITH Regexp.last_match(1) else '< 1.10' end end