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
- .abort(target, requirement, options = {}) ⇒ Object
- .check(target, requirement, options = {}) ⇒ Object
Class Method Details
.abort(target, requirement, options = {}) ⇒ Object
5 6 7 |
# File 'lib/version_guard.rb', line 5 def abort(target, requirement, = {}) Checker.new(target, requirement, ).abort_if_fail end |
.check(target, requirement, options = {}) ⇒ Object
9 10 11 |
# File 'lib/version_guard.rb', line 9 def check(target, requirement, = {}) Checker.new(target, requirement, ).check end |