Sha256: fbd130b3e4f8d7a361f7ed7a1b195a5af1d84b7604e475eea61e047899e0855b

Contents?: true

Size: 619 Bytes

Versions: 55

Compression:

Stored size: 619 Bytes

Contents

require 'fiona7/mode_switch/abstract_mode_switch'
require 'fiona7/mode_switch/views'
require 'fiona7/mode_switch/cms_routes'

module Fiona7
  module ModeSwitch
    class Composite < AbstractModeSwitch
      def initialize(app)
        super

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

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

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

      protected
      attr_reader :views, :cms_routes

      def switches
        [self.views, self.cms_routes]
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
infopark_fiona7-1.6.1.1.5 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.6.1.1.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.6.1.1.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.2.3 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.2.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.2.2 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.5.5.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.5.5.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.1.4 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.5.4.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.5.4.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.1.3 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.5.3.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.4.3.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.3.2.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.3.2.0.pre.beta1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.2.1.0.pre.beta1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.5.2.0.0 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.1.1 lib/fiona7/mode_switch/composite.rb
infopark_fiona7-1.2.0.0.1 lib/fiona7/mode_switch/composite.rb