Module: Stopover

Defined in:
lib/stopover.rb,
lib/stopover/engine.rb,
lib/stopover/version.rb,
app/controllers/stopover/pages_controller.rb,
lib/generators/stopover/install_generator.rb,
app/controllers/stopover/application_controller.rb

Defined Under Namespace

Modules: CustomMethods, Generators Classes: ApplicationController, Engine, PagesController

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.custom_methods(&block) ⇒ Object



11
12
13
# File 'lib/stopover.rb', line 11

def self.custom_methods(&block)
  Stopover::CustomMethods.module_eval(&block) if block
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Stopover)

    the object that the method was called on



15
16
17
# File 'lib/stopover.rb', line 15

def self.setup
  yield self
end