class CAS::TWO_CONSTANT

Class that represents the constant Two (2)

Public Class Methods

new() click to toggle source

Initializer for the two constant

* **returns**: `CAS::TWO_CONSTANT` new instance
# File lib/numbers/constants.rb, line 180
def initialize
  @x = 2.0
end

Public Instance Methods

to_s() click to toggle source

String representation for the constant

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