Class: Awestruct::Extensions::LazyPage

Inherits:
Object
  • Object
show all
Defined in:
lib/awestruct/extensions/tag_cloud.rb

Instance Method Summary collapse

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_sObject



33
34
35
# File 'lib/awestruct/extensions/tag_cloud.rb', line 33

def to_s
  @page.content
end