Sha256: b33f6448e084c60a59898aded8b2964214521896bf9c0868462ca8fbc78a9ef8

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    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

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.9.1 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.9.0 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.8.2 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.8.1 lib/thinreports/core/shape/basic/block_internal.rb
thinreports-0.8.0 lib/thinreports/core/shape/basic/block_internal.rb