Sha256: ede88ec66b0eec81ce26fe302f796fb37dc144048adb3dd57954f077d78fce73

Contents?: true

Size: 863 Bytes

Versions: 7

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  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::Core::Shape::Base::Interface#init_internal
          def init_internal(parent, format)
            TextBlock::Internal.new(parent, format)
          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/text_block/interface.rb
thinreports-0.12.0 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.11.0 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.10.3 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.10.2 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.10.1 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.10.0 lib/thinreports/core/shape/text_block/interface.rb