Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

orientation

sreepad edited this page Aug 17, 2016 · 4 revisions

#WORK IN PROGRESS

orientation is an instance method

####Two orientation instance methods are defined

landscape is a method that changes orientation to landscape mode

landscape

portrait is a method that changes orientation to portrait mode

portrait

####Usage

Note : It is a good practice to use instance method inside a DSL as below

def device_landscape
     landscape
end

 def device_portrait
     portrait
end
Clone this wiki locally