class Axlsx::Filters::Filter

This class expresses a filter criteria value.

Attributes

val[RW]

Filter value used in the criteria.

Public Class Methods

new(value) click to toggle source

Creates a new filter value object @param [Any] value The value of the filter. This is not restricted, but

will be serialized via to_s so if you are passing an object
be careful.
# File lib/axlsx/workbook/worksheet/auto_filter/filters.rb, line 112
def initialize(value)
  @val = value
end

Public Instance Methods

to_xml_string(str = '') click to toggle source

Serializes the filter value object @param [String] str The string to concact the serialization information to.

# File lib/axlsx/workbook/worksheet/auto_filter/filters.rb, line 122
def to_xml_string(str = '')
  str << "<filter val='#{@val.to_s}' />"
end