Module: OkComputer::Checks

Defined in:
lib/ok_computer/checks.rb,
lib/ok_computer/checks/version.rb,
lib/ok_computer/checks/registry.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Registry

Constant Summary collapse

VERSION =
"1.2.0"

Class Method Summary collapse

Class Method Details

.gem_versionObject



8
9
10
# File 'lib/ok_computer/checks/version.rb', line 8

def gem_version
  Gem::Version.new(VERSION)
end

.register(collection = nil) {|registry| ... } ⇒ Object

Yields:

  • (registry)


19
20
21
22
23
# File 'lib/ok_computer/checks.rb', line 19

def register(collection = nil)
  registry = Registry.new(collection)
  yield registry if block_given?
  registry
end