Sha256: f37812f6e5c99e43f28b99b218fefcdeebeb25a235c0d4dc9a8d0ce2367975f8

Contents?: true

Size: 599 Bytes

Versions: 12

Compression:

Stored size: 599 Bytes

Contents

module Coprl
  module Presenters
    module DSL
      module Components
        class Footer < Base
          attr_accessor :footer_type, :menus

          def initialize(type: nil, **attribs_, &block)
            @footer_type = type ||  :small
            super(type: :footer, **attribs_, &block)
            @menus = []
            expand!
          end

          def menu(title=nil, **attribs, &block)
            return @menus if locked?
            @menus << Menu.new(title,parent: self,
                               **attribs, &block)
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/dsl/components/footer.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/dsl/components/footer.rb