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.



873
874
875
876
# File 'lib/goat.rb', line 873

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

Instance Attribute Details

#htmlObject

Returns the value of attribute html.



871
872
873
# File 'lib/goat.rb', line 871

def html
  @html
end

#scriptObject

Returns the value of attribute script.



871
872
873
# File 'lib/goat.rb', line 871

def script
  @script
end

#styleObject

Returns the value of attribute style.



871
872
873
# File 'lib/goat.rb', line 871

def style
  @style
end

#titleObject

Returns the value of attribute title.



871
872
873
# File 'lib/goat.rb', line 871

def title
  @title
end

Instance Method Details

#flattened_scriptObject



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

def flattened_script; @script.join; end

#flattened_styleObject



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

def flattened_style; @style.join; end