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
hobo_support-2.2.6 lib/hobo_support/implies.rb
hobo_support-2.2.5 lib/hobo_support/implies.rb
hobo_support-2.2.4 lib/hobo_support/implies.rb
hobo_support-2.2.3 lib/hobo_support/implies.rb
hobo_support-2.2.2 lib/hobo_support/implies.rb
hobo_support-2.2.1 lib/hobo_support/implies.rb
hobo_support-2.2.0 lib/hobo_support/implies.rb
hobo_support-2.1.2 lib/hobo_support/implies.rb
hobo_support-2.1.1 lib/hobo_support/implies.rb
hobo_support-2.1.0 lib/hobo_support/implies.rb
hobo_support-2.1.0.pre4 lib/hobo_support/implies.rb
hobo_support-2.1.0.pre3 lib/hobo_support/implies.rb
hobo_support-2.1.0.pre2 lib/hobo_support/implies.rb
hobo_support-2.1.0.pre1 lib/hobo_support/implies.rb
hobo_support-2.0.1 lib/hobo_support/implies.rb
hobo_support-2.0.0 lib/hobo_support/implies.rb
hobo_support-2.0.0.pre10 lib/hobo_support/implies.rb
hobo_support-2.0.0.pre9 lib/hobo_support/implies.rb
hobo_support-2.0.0.pre8 lib/hobo_support/implies.rb
hobo_support-1.3.3 lib/hobo_support/implies.rb