Method: Axlsx::Accessors::ClassMethods#string_attr_accessor

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

#string_attr_accessor(*symbols) ⇒ Object

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

Parameters:

  • symbols (Array)

    An array of symbols representing the



21
22
23
# File 'lib/axlsx/util/accessors.rb', line 21

def string_attr_accessor(*symbols)
  validated_attr_accessor(symbols, :validate_string)
end