Class: Excel::Pattern

Inherits:
Object
  • Object
show all
Defined in:
lib/ru_excel/formatting.rb

Constant Summary collapse

NO_PATTERN =

patterns 0x00 - 0x12

0x00
SOLID_PATTERN =
0x01

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePattern

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

#patternObject

Returns the value of attribute pattern.



221
222
223
# File 'lib/ru_excel/formatting.rb', line 221

def pattern
  @pattern
end

#pattern_back_colourObject

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_colourObject

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