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