Class: Awestruct::Extensions::LazyPage
- Inherits:
-
Object
- Object
- Awestruct::Extensions::LazyPage
- Defined in:
- lib/awestruct/extensions/tag_cloud.rb
Instance Method Summary collapse
-
#initialize(page) ⇒ LazyPage
constructor
A new instance of LazyPage.
- #to_s ⇒ Object
Constructor Details
#initialize(page) ⇒ LazyPage
Returns a new instance of LazyPage.
30 31 32 |
# File 'lib/awestruct/extensions/tag_cloud.rb', line 30 def initialize(page) @page = page end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/awestruct/extensions/tag_cloud.rb', line 33 def to_s @page.content end |