Sha256: ee01b55e9988ca081810a0edb9c8690ab2a743c9b9a4bd6ef783b4c413f92d06

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

class Bignum {
  """
  Class for large integer values in Fancy.
  """

  include: Number

  ruby_aliases: [ '==, '-, '+, '*, '/, '<, '>, '<=, '>=, '===, '**, '& ]

  forwards_unary_ruby_methods

  alias_method: 'to_s: for: 'to_s
  alias_method: 'modulo: for: 'modulo
  alias_method: ":%" for: "modulo:"  # prepend with : so we dont overwrite ruby's % operator
  alias_method: 'div: for: 'div
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.5.0 lib/rbx/bignum.fy