Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/modint.rb

Overview

String

Instance Method Summary collapse

Instance Method Details

#to_modintObject Also known as: to_m



15
16
17
# File 'lib/core_ext/modint.rb', line 15

def to_modint
  ModInt.new(to_i)
end