Sha256: 9bb735cad7cd27a336ab32b6884dd4f6f83ac431eb94c67062783874b85ea83f

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

# -*- coding: utf-8 -*-

##
# Accessors for #width, #height, #depth.
#
module Indexable
  module WidthHeightDepth

    # Get width.
    def width
      self[0]
    end

    # Set width.
    def width=(width)
      self[0]=width
    end

    # Get height.
    def height
      self[1]
    end

    # Set height.
    def height=(height)
      self[1]=height
    end

    # Get depth.
    def depth
      self[2]
    end

    # Set depth.
    def depth=(depth)
      self[2]=depth
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-4.0.0 lib/sixarm_ruby_geometry/indexable/width_height_depth.rb
sixarm_ruby_geometry-3.1.1 lib/sixarm_ruby_geometry/indexable/width_height_depth.rb
sixarm_ruby_geometry-3.0.0 lib/sixarm_ruby_geometry/indexable/width_height_depth.rb