repo.or.cz
/
sleepy_penguin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
sleepy_penguin 3.5.2
[sleepy_penguin.git]
/
lib
/
sleepy_penguin
/
signalfd
/
sig_info.rb
blob
5a5153608414ceb9bbb4728e2a10d8f681a632eb
1
class SleepyPenguin::SignalFD::SigInfo # :nodoc:
2
3
def to_hash
4
Hash[*MEMBERS.inject([]) { |ary,k| ary << k << __send__(k) }]
5
end
6
7
def hash
8
to_hash.hash
9
end
10
11
def inspect
12
"#<#{self.class}:#{to_hash.inspect}>"
13
end
14
15
def ==(other)
16
other.kind_of?(self.class) && to_hash == other.to_hash
17
end
18
end