class WolfTrans::Context::GameDat
Attributes
name[R]
Public Class Methods
from_data(name)
click to toggle source
# File lib/wolftrans/context.rb, line 125 def self.from_data(name) GameDat.new(name) end
from_string(path)
click to toggle source
# File lib/wolftrans/context.rb, line 129 def self.from_string(path) if path.size != 1 raise "invalid path specified for GAMEDAT context line" end GameDat.new(path.first) end
new(name)
click to toggle source
# File lib/wolftrans/context.rb, line 109 def initialize(name) @name = name end
Public Instance Methods
eql?(other)
click to toggle source
Calls superclass method
WolfTrans::Context#eql?
# File lib/wolftrans/context.rb, line 113 def eql?(other) super && @name == other.name end
hash()
click to toggle source
# File lib/wolftrans/context.rb, line 117 def hash @name.hash end
to_s()
click to toggle source
# File lib/wolftrans/context.rb, line 121 def to_s "GAMEDAT:#{@name}" end