class Swiftlocalizer::LocalizableString
Attributes
filename[RW]
lineno[RW]
str[RW]
Public Class Methods
new(str, filename, lineno)
click to toggle source
# File lib/swiftlocalizer.rb, line 33 def initialize(str, filename, lineno) @str = str @filename = filename @lineno = lineno end
Public Instance Methods
str_and_lineno()
click to toggle source
# File lib/swiftlocalizer.rb, line 42 def str_and_lineno "#{@lineno}: #{@str}" end
to_s()
click to toggle source
# File lib/swiftlocalizer.rb, line 39 def to_s "#{@str},#{@filename},#{@lineno}" end
to_short_s()
click to toggle source
# File lib/swiftlocalizer.rb, line 45 def to_short_s "#{@str} #{File.basename(@filename)}:#{@lineno}" end