Sha256: 4a106441675e0ff83805e265c97a44832efbc0bd9d4a1872382bd259a6d361bc

Contents?: true

Size: 754 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.7.6 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.7.5 lib/thinreports/core/shape/text_block/interface.rb
thinreports-0.7.0 lib/thinreports/core/shape/text_block/interface.rb