Sha256: 7b19704a5bd51186b198374b25d4ca4f0bb215975476e346d97682bda9725974

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    # @private
    class Basic::BlockInternal < Basic::Internal
      format_delegators :box
      
      def style
        @style ||= Style::Basic.new(format)
      end
      
      def read_value
        states.key?(:value) ? states[:value] : format.value.dup
      end
      alias_method :value, :read_value
      
      def write_value(val)
        states[:value] = val
      end
      
      def real_value
        read_value
      end
      
      def type_of?(type_name)
        type_name == :block
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.7.6 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.7.5 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.7.0 lib/thinreports/core/shape/basic/block_internal.rb