Class: Goat::PageCanvas

Inherits:
Object show all
Defined in:
lib/goat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePageCanvas

Returns a new instance of PageCanvas.



854
855
856
857
# File 'lib/goat.rb', line 854

def initialize
  @script = []
  @style = []
end

Instance Attribute Details

#htmlObject

Returns the value of attribute html.



852
853
854
# File 'lib/goat.rb', line 852

def html
  @html
end

#scriptObject

Returns the value of attribute script.



852
853
854
# File 'lib/goat.rb', line 852

def script
  @script
end

#styleObject

Returns the value of attribute style.



852
853
854
# File 'lib/goat.rb', line 852

def style
  @style
end

#titleObject

Returns the value of attribute title.



852
853
854
# File 'lib/goat.rb', line 852

def title
  @title
end

Instance Method Details

#flattened_scriptObject



860
# File 'lib/goat.rb', line 860

def flattened_script; @script.join; end

#flattened_styleObject



859
# File 'lib/goat.rb', line 859

def flattened_style; @style.join; end