Class: Lablr::TemplateStyle
- Inherits:
-
Object
- Object
- Lablr::TemplateStyle
- Defined in:
- lib/lablr/template_style.rb
Overview
visual styles for Templates
Instance Attribute Summary collapse
-
#borders ⇒ Object
Returns the value of attribute borders.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TemplateStyle
constructor
A new instance of TemplateStyle.
Constructor Details
#initialize(options = {}) ⇒ TemplateStyle
Returns a new instance of TemplateStyle.
5 6 7 8 9 10 |
# File 'lib/lablr/template_style.rb', line 5 def initialize( = {}) # Set defaults [:borders] = true if [:borders].nil? # border around labels @borders = [:borders] end |
Instance Attribute Details
#borders ⇒ Object
Returns the value of attribute borders.
3 4 5 |
# File 'lib/lablr/template_style.rb', line 3 def borders @borders end |