Class: DateSlash::DivisionValue

Inherits:
Numeric
  • Object
show all
Defined in:
sig/dateslash.rbs

Direct Known Subclasses

DivisionResult

Instance Method Summary collapse

Constructor Details

#initializeDivisionValue

Returns a new instance of DivisionValue.

Parameters:

  • quotient (Numeric)


8
# File 'sig/dateslash.rbs', line 8

def initialize: (Numeric quotient) -> void

Instance Method Details

#<=>Integer?

Parameters:

  • other (Object)

Returns:

  • (Integer, nil)


10
# File 'sig/dateslash.rbs', line 10

def <=>: (untyped other) -> Integer?

#==Boolean

Parameters:

  • other (Object)

Returns:

  • (Boolean)


9
# File 'sig/dateslash.rbs', line 9

def ==: (untyped other) -> bool

#coerce[Numeric, Numeric]

Parameters:

  • other (Numeric)

Returns:

  • ([Numeric, Numeric])


11
# File 'sig/dateslash.rbs', line 11

def coerce: (Numeric other) -> [Numeric, Numeric]

#inspectString

Returns:

  • (String)


12
# File 'sig/dateslash.rbs', line 12

def inspect: () -> String

#integer?Boolean

Returns:

  • (Boolean)


17
# File 'sig/dateslash.rbs', line 17

def integer?: () -> bool

#to_fFloat

Returns:

  • (Float)


16
# File 'sig/dateslash.rbs', line 16

def to_f: () -> Float

#to_iInteger

Returns:

  • (Integer)


14
# File 'sig/dateslash.rbs', line 14

def to_i: () -> Integer

#to_intInteger

Returns:

  • (Integer)


15
# File 'sig/dateslash.rbs', line 15

def to_int: () -> Integer

#to_sString

Returns:

  • (String)


13
# File 'sig/dateslash.rbs', line 13

def to_s: () -> String