Sha256: f9787c5a54a57c1e9b9a7e8d2c7474c5f92c68324ae96e9e8a06613bc188eb68

Contents?: true

Size: 559 Bytes

Versions: 5

Compression:

Stored size: 559 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class Basic::BlockInterface < Basic::Interface
      # @overload value(val)
      #   Set a val
      #   @param [Object] val
      #   @return [self]
      # @overload value
      #   Return the value
      #   @return [Object]
      def value(*args)
        if args.empty?
          internal.read_value
        else
          internal.write_value(args.first)
          self
        end
      end

      # @param [Object] val
      def value=(val)
        value(val)
      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_interface.rb
thinreports-0.9.0 lib/thinreports/core/shape/basic/block_interface.rb
thinreports-0.8.2 lib/thinreports/core/shape/basic/block_interface.rb
thinreports-0.8.1 lib/thinreports/core/shape/basic/block_interface.rb
thinreports-0.8.0 lib/thinreports/core/shape/basic/block_interface.rb