Sha256: 3377e775ab9311eaca65fec3864e909b08ccf5e2345c9b32efbad167c5325883

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape
    
    class TextBlock::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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.8.2 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.8.1 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.8.0 lib/thinreports/core/shape/text_block/interface.rb