ruby: add Matinfo#===

develop
jj 2012-10-10 14:57:45 +02:00
parent cbbb164dad
commit 5cf42fd6f8
1 changed files with 4 additions and 0 deletions

@ -189,6 +189,10 @@ module DFHack
end
def to_s ; token ; end
def ===(other)
other.mat_index == mat_index and other.mat_type == mat_type
end
end
class << self