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.
25 26 27 |
# File 'lib/awestruct/extensions/tag_cloud.rb', line 25 def initialize(page) @page = page end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/awestruct/extensions/tag_cloud.rb', line 28 def to_s @page.content end |