Method: Axlsx::Accessors::ClassMethods#boolean_attr_accessor

Defined in:
lib/axlsx/util/accessors.rb

#boolean_attr_accessor(*symbols) ⇒ Object

Creates on or more boolean validated attr_accessors names of the attributes you will add to your class.

Parameters:

  • symbols (Array)

    An array of symbols representing the



43
44
45
# File 'lib/axlsx/util/accessors.rb', line 43

def boolean_attr_accessor(*symbols)
  validated_attr_accessor(symbols, :validate_boolean)
end