Sha256: 048db34ff76c1dc512e8b6c5c5bcb93e6b77d79adcc02367c8646f78539c61e7

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class List::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 lib/thinreports/core/shape/list/section_internal.rb
thinreports-0.9.0 lib/thinreports/core/shape/list/section_internal.rb