Class: Goat::PageCanvas
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
-
#script ⇒ Object
Returns the value of attribute script.
-
#script_files ⇒ Object
Returns the value of attribute script_files.
-
#style ⇒ Object
Returns the value of attribute style.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #additional_script_tags ⇒ Object
- #flattened_script ⇒ Object
- #flattened_style ⇒ Object
-
#initialize ⇒ PageCanvas
constructor
A new instance of PageCanvas.
Constructor Details
#initialize ⇒ PageCanvas
Returns a new instance of PageCanvas.
879 880 881 882 883 |
# File 'lib/goat.rb', line 879 def initialize @script = [] @style = [] @script_files = [] end |
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
877 878 879 |
# File 'lib/goat.rb', line 877 def html @html end |
#script ⇒ Object
Returns the value of attribute script.
877 878 879 |
# File 'lib/goat.rb', line 877 def script @script end |
#script_files ⇒ Object
Returns the value of attribute script_files.
877 878 879 |
# File 'lib/goat.rb', line 877 def script_files @script_files end |
#style ⇒ Object
Returns the value of attribute style.
877 878 879 |
# File 'lib/goat.rb', line 877 def style @style end |
#title ⇒ Object
Returns the value of attribute title.
877 878 879 |
# File 'lib/goat.rb', line 877 def title @title end |
Instance Method Details
#additional_script_tags ⇒ Object
888 889 890 |
# File 'lib/goat.rb', line 888 def @script_files.map {|file| "<script for=\"goat\" src=\"#{file}\"></script>"} end |
#flattened_script ⇒ Object
886 |
# File 'lib/goat.rb', line 886 def flattened_script; @script.join; end |
#flattened_style ⇒ Object
885 |
# File 'lib/goat.rb', line 885 def flattened_style; @style.join; end |