Fix for magic attributes using portrait and landscape #164

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Split
@@ -22,11 +22,13 @@ def portrait?(temp_object)
attrs = identify(temp_object)
attrs[:width] <= attrs[:height]
end
+ alias portrait portrait?
def landscape?(temp_object)
attrs = identify(temp_object)
attrs[:width] >= attrs[:height]
end
+ alias landscape landscape?
def depth(temp_object)
identify(temp_object)[:depth]