Sha256: 31a07c1db6ab06fea4594c2d666fd7bd1b178c5563e01086bec2d33103c6b355

Contents?: true

Size: 776 Bytes

Versions: 5

Compression:

Stored size: 776 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    module Core
      module Shape
        module Basic
          class 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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/shape/basic/block_interface.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/basic/block_interface.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/basic/block_interface.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/basic/block_interface.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/basic/block_interface.rb