Class: Shoes::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_shoes/image.rb

Instance Method Summary collapse

Instance Method Details

#full_heightObject

The full pixel height of the image. Normally, you can just use the height method to figure out how many pixels high the image is. But if you’ve resized the image or styled it to be larger or something, then height will return the scaled size.



4
5
6
7
# File 'lib/blue_shoes/image.rb', line 4

def full_height
  # returns a number
  throw NotImplementedError
end

#full_widthObject

The full pixel width of the image. See the full_height method for an explanation of why you might use this method rather than width.



10
11
12
13
# File 'lib/blue_shoes/image.rb', line 10

def full_width
  # returns a number
  throw NotImplementedError
end

#pathObject

The URL or file name of the image.



16
17
18
19
# File 'lib/blue_shoes/image.rb', line 16

def path
  # returns a string
  throw NotImplementedError
end

#path=(str) ⇒ Object

Swaps the image with a different one, loaded from a file or URL.



22
23
24
25
# File 'lib/blue_shoes/image.rb', line 22

def path=(str)
  # returns a string
  throw NotImplementedError
end