Class: Applocale::ParseXLSXModule::KeyStrWithColNo

Inherits:
Object
  • Object
show all
Defined in:
lib/applocale/Core/ParseXLSX/parse_xlsx_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_str, colno) ⇒ KeyStrWithColNo

Returns a new instance of KeyStrWithColNo.



79
80
81
82
# File 'lib/applocale/Core/ParseXLSX/parse_xlsx_module.rb', line 79

def initialize(header_str, colno)
  self.header_str = header_str
  self.colno = colno
end

Instance Attribute Details

#colnoObject

Returns the value of attribute colno.



77
78
79
# File 'lib/applocale/Core/ParseXLSX/parse_xlsx_module.rb', line 77

def colno
  @colno
end

#header_strObject

Returns the value of attribute header_str.



77
78
79
# File 'lib/applocale/Core/ParseXLSX/parse_xlsx_module.rb', line 77

def header_str
  @header_str
end

Instance Method Details

#to_sObject



84
85
86
# File 'lib/applocale/Core/ParseXLSX/parse_xlsx_module.rb', line 84

def to_s
  "{header_str => #{header_str}, colno => #{colno}}"
end