Class: Applocale::ParseModelModule::KeyStrWithColNo

Inherits:
Object
  • Object
show all
Defined in:
lib/applocale/Core/ParseModel/parse_model_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_str, colno) ⇒ KeyStrWithColNo

Returns a new instance of KeyStrWithColNo.



62
63
64
65
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 62

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

Instance Attribute Details

#colnoObject

Returns the value of attribute colno.



60
61
62
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 60

def colno
  @colno
end

#header_strObject

Returns the value of attribute header_str.



60
61
62
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 60

def header_str
  @header_str
end

Instance Method Details

#to_sObject



67
68
69
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 67

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