Sha256: 6adf701021d0c607163181a49bdfa0244d66d8788453e69e9a607852a468bf41

Contents?: true

Size: 590 Bytes

Versions: 7

Compression:

Stored size: 590 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class Page < Base
          attr_accessor :title, :background_color

          def initialize(**attribs_, &block)
            super(type: :page,
                  **attribs_, &block)
            expand!
          end

          def title(title=nil)
            return @title if locked?
            @title = title
          end

          def background_color(color=nil)
            return @background_color if locked?
            @background_color = color
          end

        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/page.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/page.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/page.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/page.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/page.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/page.rb
voom-presenters-0.2.0 lib/voom/presenters/dsl/components/page.rb