Sha256: b56e4c40fc146bfd3bab0999dc2a2b5eb9715d7ea7a99023f2d68aa5fc807aa5

Contents?: true

Size: 209 Bytes

Versions: 32

Compression:

Stored size: 209 Bytes

Contents

class Object
  def is_boolean?
    self.is_a?(TrueClass) || self.is_a?(FalseClass)
  end
end

class TrueClass
  def intern
    return :true
  end
end

class FalseClass
  def intern
    return :false
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
darkhelmet-darkext-0.10.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.11.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.11.1 lib/darkext/boolean.rb
darkhelmet-darkext-0.11.2 lib/darkext/boolean.rb
darkhelmet-darkext-0.12.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.1 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.2 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.3 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.4 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.5 lib/darkext/boolean.rb
darkhelmet-darkext-0.5.6 lib/darkext/boolean.rb
darkhelmet-darkext-0.6.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.7.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.7.1 lib/darkext/boolean.rb
darkhelmet-darkext-0.7.2 lib/darkext/boolean.rb
darkhelmet-darkext-0.7.3 lib/darkext/boolean.rb
darkhelmet-darkext-0.8.0 lib/darkext/boolean.rb
darkhelmet-darkext-0.8.1 lib/darkext/boolean.rb
darkhelmet-darkext-0.8.2 lib/darkext/boolean.rb
darkhelmet-darkext-0.8.3 lib/darkext/boolean.rb