Class: Applocale::ParseModelModule::LangWithColNo

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, lang, colno) ⇒ LangWithColNo

Returns a new instance of LangWithColNo.



76
77
78
79
80
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 76

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

Instance Attribute Details

#colnoObject

Returns the value of attribute colno.



74
75
76
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 74

def colno
  @colno
end

#header_strObject

Returns the value of attribute header_str.



74
75
76
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 74

def header_str
  @header_str
end

#langObject

Returns the value of attribute lang.



74
75
76
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 74

def lang
  @lang
end

Instance Method Details

#to_sObject



82
83
84
# File 'lib/applocale/Core/ParseModel/parse_model_module.rb', line 82

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