Sha256: b97ff513e52576c5ad200906ba463b8d26371f74df09f96a660ab7666e3ed328

Contents?: true

Size: 151 Bytes

Versions: 5

Compression:

Stored size: 151 Bytes

Contents

# encoding: utf-8
module WannabeBool
  module Integer
    def to_b
      self == 1
    end
  end
end

class Integer
  include WannabeBool::Integer
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wannabe_bool-0.1.1 lib/wannabe_bool/integer.rb
wannabe_bool-0.1.0 lib/wannabe_bool/integer.rb
wannabe_bool-0.0.3 lib/wannabe_bool/integer.rb
wannabe_bool-0.0.2 lib/wannabe_bool/integer.rb
wannabe_bool-0.0.1 lib/wannabe_bool/integer.rb