Class: CooCoo::DataSources::Xournal::Background
- Defined in:
- lib/coo-coo/data_sources/xournal/document.rb
Constant Summary collapse
- Styles =
[ 'plain', 'lined', 'ruled', 'graph' ]
- Default =
self.new
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize(color = 'white', style = 'plain') ⇒ Background
constructor
A new instance of Background.
Constructor Details
#initialize(color = 'white', style = 'plain') ⇒ Background
Returns a new instance of Background.
89 90 91 92 |
# File 'lib/coo-coo/data_sources/xournal/document.rb', line 89 def initialize(color = 'white', style = 'plain') self.color = color self.style = style end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
84 85 86 |
# File 'lib/coo-coo/data_sources/xournal/document.rb', line 84 def color @color end |
#style ⇒ Object
Returns the value of attribute style.
85 86 87 |
# File 'lib/coo-coo/data_sources/xournal/document.rb', line 85 def style @style end |