Sha256: c09a0f0eed4156991c5fca4732b948fb904806e8b6d2fdcf74a642b0c0d4427a

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

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

##
# Accessors for #width, #height.
#
module Indexable
  module WidthHeight

    # 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

  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.rb
sixarm_ruby_geometry-3.1.1 lib/sixarm_ruby_geometry/indexable/width_height.rb
sixarm_ruby_geometry-3.0.0 lib/sixarm_ruby_geometry/indexable/width_height.rb