Sha256: f3ca3cd679ea33ad483a4e68cb9017551ea9211ce1baa38e375f042ecfbe0eb7

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Basic
        class Format < Core::Format::Base
          include Utils

          config_reader :type, :id
          config_reader :style
          config_checker true, :display
          config_reader follow_stretch: %w[follow-stretch]

          def affect_bottom_margin?
            attributes.fetch('affect-bottom-margin', true)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/basic/format.rb
thinreports-0.12.0 lib/thinreports/core/shape/basic/format.rb