Top Level Namespace

Defined Under Namespace

Modules: Dimensions

Instance Method Summary collapse

Instance Method Details

#Dimensions(io) ⇒ Object

Extends an IO object with the Dimensions::IO module, which adds dimensions, width, height and angle methods. The methods will return non-nil values once the IO has been sufficiently read, assuming its contents are an image.



14
15
16
# File 'lib/dimensions.rb', line 14

def Dimensions(io)
  io.extend(Dimensions::IO)
end