Sha256: ac43daa53579da12a790bb34e3dea567f04745b9b824c9ec561fb9b3a8c4dbb0

Contents?: true

Size: 641 Bytes

Versions: 7

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module List
        class SectionInternal < Base::Internal
          format_delegators :height,
                            :relative_left

          # @return [Symbol]
          attr_accessor :section_name

          def style
            @style ||= Style::Base.new(format)
          end

          # @param [Numeric] ry
          def move_top_to(ry)
            states[:relative_top] = ry
          end

          # @return [Float]
          def relative_top
            states[:relative_top] || 0
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.12.0 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.11.0 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.10.3 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.10.2 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.10.1 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.10.0 lib/thinreports/core/shape/list/section_internal.rb