Class: TrueClass

Inherits:
Object
  • Object
show all
Defined in:
lib/fmod/core/extensions.rb

Overview

Extensions to TrueClass.

Instance Method Summary collapse

Instance Method Details

#to_iInteger

Returns the object as an Integer (1).

Returns:

  • (Integer)

    the object as an Integer (1).



33
34
35
# File 'lib/fmod/core/extensions.rb', line 33

def to_i
  1
end