Sha256: 0166f226fd34d592feb65ab225f081b8816449441e5b73a8777b44b71ea2dda9

Contents?: true

Size: 208 Bytes

Versions: 1

Compression:

Stored size: 208 Bytes

Contents

module WannabeBool::Aliasing
  def self.included(base)
    base.send(:alias_method, :to_bool, :to_b)
    base.send(:alias_method, :to_boolean, :to_b)
  end

  def to_b
    raise NotImplementedError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wannabe_bool-0.7.0 lib/wannabe_bool/aliasing.rb