Module: Ring

Defined in:
lib/ring.rb,
lib/ring/engine.rb,
lib/ring/version.rb,
app/controllers/ring/ping_controller.rb,
app/controllers/ring/application_controller.rb

Defined Under Namespace

Classes: ApplicationController, Engine, PingController

Constant Summary collapse

VERSION =
'1.0.0'
@@checks =

rubocop:disable Style/ClassVars

{}

Class Method Summary collapse

Class Method Details

.add_check(name, check) ⇒ Object



13
14
15
# File 'lib/ring.rb', line 13

def self.add_check(name, check)
  @@checks[name] = check
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Ring)

    the object that the method was called on



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

def self.configure
  yield self
end