Class: Excel::Pattern
- Inherits:
-
Object
- Object
- Excel::Pattern
- Defined in:
- lib/ru_excel/formatting.rb
Constant Summary collapse
- NO_PATTERN =
patterns 0x00 - 0x12
0x00- SOLID_PATTERN =
0x01
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#pattern_back_colour ⇒ Object
Returns the value of attribute pattern_back_colour.
-
#pattern_fore_colour ⇒ Object
Returns the value of attribute pattern_fore_colour.
Instance Method Summary collapse
-
#initialize ⇒ Pattern
constructor
A new instance of Pattern.
Constructor Details
#initialize ⇒ Pattern
Returns a new instance of Pattern.
216 217 218 219 220 |
# File 'lib/ru_excel/formatting.rb', line 216 def initialize @pattern = NO_PATTERN @pattern_fore_colour = 0x40 @pattern_back_colour = 0x41 end |
Instance Attribute Details
#pattern ⇒ Object
Returns the value of attribute pattern.
221 222 223 |
# File 'lib/ru_excel/formatting.rb', line 221 def pattern @pattern end |
#pattern_back_colour ⇒ Object
Returns the value of attribute pattern_back_colour.
221 222 223 |
# File 'lib/ru_excel/formatting.rb', line 221 def pattern_back_colour @pattern_back_colour end |
#pattern_fore_colour ⇒ Object
Returns the value of attribute pattern_fore_colour.
221 222 223 |
# File 'lib/ru_excel/formatting.rb', line 221 def pattern_fore_colour @pattern_fore_colour end |