anyone-oslo/pages

View on GitHub
lib/pages_core/templates/block_configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
# frozen_string_literal: true

module PagesCore
  module Templates
    # Configuration for the blocks on an individual template
    class BlockConfiguration
      attr_reader :name, :title, :description, :optional, :enforced

      def small?
        @size == :small
      end

      def large?
        !small?
      end
    end
  end
end