class Swiftlocalizer::LocalizedString

Attributes

en[RW]
filename[RW]
ja[RW]
lineno[RW]

Public Class Methods

new(en, ja, filename, lineno) click to toggle source
# File lib/swiftlocalizer.rb, line 7
def initialize(en, ja, filename, lineno)
  @en = en
  @ja = ja
  @filename = filename
  @lineno = lineno
end

Public Instance Methods

key() click to toggle source
# File lib/swiftlocalizer.rb, line 27
def key
  @en
end
str_and_lineno() click to toggle source
# File lib/swiftlocalizer.rb, line 19
def str_and_lineno
  "#{@filename}: #{@en} #{@ja}"
end
to_s() click to toggle source
# File lib/swiftlocalizer.rb, line 15
def to_s
  "#{@en},#{@ja},#{@filename},#{@lineno}"
end
to_short_s() click to toggle source
# File lib/swiftlocalizer.rb, line 23
def to_short_s
  "#{@en} #{@ja} #{File.basename(@filename)}:#{@lineno}"
end