Class: Fiona7::ModeSwitch::Composite

Inherits:
AbstractModeSwitch show all
Defined in:
lib/fiona7/mode_switch/composite.rb

Instance Attribute Summary

Attributes inherited from AbstractModeSwitch

#app

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Composite

Returns a new instance of Composite.



8
9
10
11
12
13
# File 'lib/fiona7/mode_switch/composite.rb', line 8

def initialize(app)
  super

  @views      = Views.new(self.app)
  @cms_routes = CmsRoutes.new(self.app)
end

Instance Method Details

#legacyObject



19
20
21
# File 'lib/fiona7/mode_switch/composite.rb', line 19

def legacy
  self.switches.each(&:legacy)
end

#standaloneObject



15
16
17
# File 'lib/fiona7/mode_switch/composite.rb', line 15

def standalone
  self.switches.each(&:standalone)
end