Sha256: 76c6e7cc26d31750f0db80954080e15b5157167ac205404d092819997c4493e7

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/shape/list/section_internal.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/list/section_internal.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/list/section_internal.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/list/section_internal.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/list/section_internal.rb