Class: String
Instance Method Summary collapse
Instance Method Details
#distance(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/rust-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
810 811 812 |
# File 'lib/rust-core.rb', line 810 def to_R return self.inspect end |