Sha256: d04d144178fffe14d6fa763a1538e136089e1f821f6c6311cc8138722a7ce3da

Contents?: true

Size: 957 Bytes

Versions: 5

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    module Core
      module Shape
        module TextBlock
          class Interface < Basic::BlockInterface
            internal_delegators :format_enabled?

            # @param [Boolean] enabled
            # @return [self]
            def format_enabled(enabled)
              internal.format_enabled(enabled)
              self
            end

            # @param [Object] val
            # @param [Hash<Symbol, Object>] style_settings
            # @return [self]
            def set(val, style_settings = {})
              value(val)
              styles(style_settings) #=> self
            end

            private

            # @see Thinreports::BasicReport::Core::Shape::Base::Interface#init_internal
            def init_internal(parent, format)
              TextBlock::Internal.new(parent, format)
            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/text_block/interface.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/text_block/interface.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/text_block/interface.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/text_block/interface.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/text_block/interface.rb