Class: Charyf::Engine::Routing::Base

Inherits:
Object
  • Object
show all
Includes:
Strategy::BaseClass
Defined in:
lib/charyf/engine/routing/router.rb

Direct Known Subclasses

Default

Instance Method Summary collapse

Methods included from Strategy::BaseClass

included

Instance Method Details

#draw(&block) ⇒ Object



13
14
15
# File 'lib/charyf/engine/routing/router.rb', line 13

def draw(&block)
  raise Charyf::Utils::NotImplemented.new
end

#invalidObject



26
27
28
# File 'lib/charyf/engine/routing/router.rb', line 26

def invalid
  Result.new(nil, 'skill', 'invalid')
end

#process(context) ⇒ Object

Context -> Controller



18
19
20
# File 'lib/charyf/engine/routing/router.rb', line 18

def process(context)
  raise Charyf::Utils::NotImplemented.new
end

#unknownObject



22
23
24
# File 'lib/charyf/engine/routing/router.rb', line 22

def unknown
  Result.new(nil, 'skill', 'unknown')
end