class CAS::ONE_CONSTANT

Class that represents the constant One (1)

Public Class Methods

new() click to toggle source

Initializer for the one constant

* **returns**: `CAS::ONE_CONSTANT` new instance
# File lib/numbers/constants.rb, line 177
def initialize
  @x = 1.0
end

Public Instance Methods

to_s() click to toggle source

String representation for the constant

* **returns**: `String`
# File lib/numbers/constants.rb, line 184
def to_s
  "1"
end