Class: CooCoo::DataSources::Xournal::Background

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#colorObject

Returns the value of attribute color.



84
85
86
# File 'lib/coo-coo/data_sources/xournal/document.rb', line 84

def color
  @color
end

#styleObject

Returns the value of attribute style.



85
86
87
# File 'lib/coo-coo/data_sources/xournal/document.rb', line 85

def style
  @style
end