class Segment

Attributes

key[RW]
language[RW]
translation[RW]

Public Class Methods

new(key, translation, language) click to toggle source
# File lib/localio/segment.rb, line 5
def initialize(key, translation, language)
  @key = key
  @translation = translation.replace_escaped
  @language = language
end

Public Instance Methods

is_comment?() click to toggle source
# File lib/localio/segment.rb, line 11
def is_comment?
  @key == nil
end