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-1.1.0.pre0 lib/hobo_support/implies.rb
hobosupport-1.0.2 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre16 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre15 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre14 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre13 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre12 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre11 lib/hobo_support/implies.rb
hobo_support-1.3.0.pre10 lib/hobo_support/implies.rb
hobosupport-1.0.1 lib/hobo_support/implies.rb
hobosupport-1.0.0 lib/hobo_support/implies.rb
hobosupport-0.9.106 lib/hobo_support/implies.rb
hobosupport-0.9.105 lib/hobo_support/implies.rb
hobosupport-0.9.104 lib/hobo_support/implies.rb
hobosupport-0.9.103 lib/hobo_support/implies.rb
hobosupport-0.9.102 lib/hobo_support/implies.rb
hobosupport-0.9.101 lib/hobo_support/implies.rb
hobosupport-0.9.100 lib/hobo_support/implies.rb
hobosupport-0.9.0 lib/hobo_support/implies.rb
hobosupport-0.8.10 lib/hobo_support/implies.rb