Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/wordRS-lib.rb
Instance Method Summary collapse
Instance Method Details
#shuffle ⇒ Object
158 159 160 |
# File 'lib/wordRS-lib.rb', line 158 def shuffle self.split("").shuffle.join end |
#to_f2 ⇒ Object
162 163 164 165 166 167 |
# File 'lib/wordRS-lib.rb', line 162 def to_f2 return 1/0.0 if self == "inf" return -1/0.0 if self == "-inf" return 0/0.0 if self == "NaN" self.to_f end |