Class: String
- Defined in:
- lib/rust/core/types/datatype.rb,
lib/rust/stats/probabilities.rb
Instance Method Summary collapse
Instance Method Details
#distance(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/rust/stats/probabilities.rb', line 27 def distance(other) raise TypeError, "no implicit conversion of #{other.class} into String" unless other.is_a? String return self.bytes.distance other.bytes end |
#to_R ⇒ Object
152 153 154 |
# File 'lib/rust/core/types/datatype.rb', line 152 def to_R return self.inspect end |