Sha256: 8c03d8de8c23d7a358d7ff04c3f8112d69b0a01be761a35729f78eb61510abd8

Contents?: true

Size: 134 Bytes

Versions: 90

Compression:

Stored size: 134 Bytes

Contents

class TrueClass

  def implies(x=nil)
    block_given? ? yield : x
  end

end

class FalseClass

  def implies(x)
    true
  end

end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
hobosupport-0.8.9 lib/hobo_support/implies.rb
hobosupport-0.8.8 lib/hobo_support/implies.rb
hobosupport-0.8.4 lib/hobo_support/implies.rb
hobosupport-0.8.2 lib/hobosupport/implies.rb
hobosupport-0.8.5 lib/hobo_support/implies.rb
hobosupport-0.8.1 lib/hobosupport/implies.rb
hobosupport-0.8.7 lib/hobo_support/implies.rb
hobosupport-0.8 lib/hobosupport/implies.rb
hobosupport-0.8.6 lib/hobo_support/implies.rb
hobosupport-0.8.3 lib/hobosupport/implies.rb