Class: Aviary::Page
- Inherits:
-
Object
- Object
- Aviary::Page
- Defined in:
- lib/aviary/page.rb
Instance Attribute Summary collapse
-
#image_hosts ⇒ Object
readonly
Photos for the current page.
-
#paginator ⇒ Object
readonly
Next page, previous page and current page.
Instance Method Summary collapse
- #binding ⇒ Object
-
#h(string) ⇒ Object
Escapes text by replacing < and > with their HTML character entity reference.
-
#initialize(paginator) ⇒ Page
constructor
A new instance of Page.
Constructor Details
Instance Attribute Details
#image_hosts ⇒ Object (readonly)
Photos for the current page
4 5 6 |
# File 'lib/aviary/page.rb', line 4 def image_hosts @image_hosts end |
#paginator ⇒ Object (readonly)
Next page, previous page and current page
7 8 9 |
# File 'lib/aviary/page.rb', line 7 def paginator @paginator end |
Instance Method Details
#binding ⇒ Object
22 23 24 |
# File 'lib/aviary/page.rb', line 22 def binding super end |
#h(string) ⇒ Object
Escapes text by replacing < and > with their HTML character entity reference.
Returns escaped string.
18 19 20 |
# File 'lib/aviary/page.rb', line 18 def h(string) string.gsub('<', '<').gsub('>', '>') end |