Sha256: b7c62b7e9f097c84cf6ec1c8ddceb5afb16f32dfaf4f386b693b1b8eae1f58ba

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

# :stopdoc:
class SleepyPenguin::SignalFD::SigInfo

  def to_hash
    Hash[*MEMBERS.inject([]) { |ary,k| ary << k << __send__(k) }]
  end

  def hash
    to_hash.hash
  end

  def inspect
    "#<#{self.class}:#{to_hash.inspect}>"
  end

  def ==(other)
    other.kind_of?(self.class) && to_hash == other.to_hash
  end
end
# :startdoc:

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sleepy_penguin-3.3.0 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-3.2.0 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-3.1.0.26.g7181 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-3.1.0 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-3.0.1 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-3.0.0 lib/sleepy_penguin/signalfd/sig_info.rb
sleepy_penguin-2.0.0 lib/sleepy_penguin/signalfd/sig_info.rb