Module: VersionGuard

Defined in:
lib/version_guard.rb,
lib/version_guard/version.rb

Defined Under Namespace

Classes: Checker

Constant Summary collapse

Error =
Class.new(StandardError)
VERSION =
'1.0.1'

Class Method Summary collapse

Class Method Details

.abort(target, requirement, options = {}) ⇒ Object



5
6
7
# File 'lib/version_guard.rb', line 5

def abort(target, requirement, options = {})
  Checker.new(target, requirement, options).abort_if_fail
end

.check(target, requirement, options = {}) ⇒ Object



9
10
11
# File 'lib/version_guard.rb', line 9

def check(target, requirement, options = {})
  Checker.new(target, requirement, options).check
end