Sha256: 5a0703015bac5ca64e5af9e570eac35c802baad5219b9c79308910b4f3c6c9bc

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 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

5 entries across 5 versions & 1 rubygems

Version Path
fancy-0.10.0 lib/rbx/bignum.fy
fancy-0.9.0 lib/rbx/bignum.fy
fancy-0.8.0 lib/rbx/bignum.fy
fancy-0.7.0 lib/rbx/bignum.fy
fancy-0.6.0 lib/rbx/bignum.fy