prose 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prose.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f802de09cd18bac9c0de3d7858b9fcee414022b71673aefa7163f3e44e91cb94
|
4
|
+
data.tar.gz: e2448e31f525824f29d013afe489d2307a8f27a19c865bcd6cc24267bacbc74d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa9ca1ee7fd2baa9b72fe6d5b5d3e5f6397bda4cc6c6a0fb8d78199542efae258cca946ee5114bcb936a5647d789f5a44603d510f9530e4a46186c7e7579b907
|
7
|
+
data.tar.gz: adcb37ec8542fa31fdd82d1e8b690adbec9119cdb94e992b3d5b6051a7d36c35f1238fd0a077c19805621ed83a5c0197d41011ccc691426c5650aaa90d0f5a74
|
data/lib/prose.rb
CHANGED
@@ -35,7 +35,7 @@ class String
|
|
35
35
|
language_ranges.map { |range| char_in_range?(char.ord, range) }.include? true
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
38
|
+
def percentage_of(language)
|
39
39
|
total_languages = find_origins_in(self)
|
40
40
|
|
41
41
|
occurance_of_language = total_languages.count(language).to_f
|