Libraries
»
ac-library-rb
(1.2.0)
»
Index (S)
»
String
Class: String
Inherits:
Object
Object
String
show all
Defined in:
lib/core_ext/modint.rb
Overview
String
Instance Method Summary
collapse
#
to_modint
⇒ Object
(also: #to_m)
Instance Method Details
#
to_modint
⇒
Object
Also known as:
to_m
15 16 17
# File 'lib/core_ext/modint.rb', line 15
def
to_modint
ModInt
.
new
(
to_i
)
end