Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created November 9, 2015 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/034fb1fd4fb737127ab5 to your computer and use it in GitHub Desktop.
Save ongaeshi/034fb1fd4fb737127ab5 to your computer and use it in GitHub Desktop.
# Please return the Image object in the
def convert
imgs = Image.pick_from_library(9)
ImageUtil.horizontal([
imgs[0].square,
ImageUtil.grid(imgs[1..4].map { |e| e.square }),
ImageUtil.grid(imgs[5..8].map { |e| e.square })
])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment