what_is 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/what_is/version.rb +1 -1
- data/lib/what_is.rb +11 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c401f91649f02ab63ee8cd4819794050ffabc14
|
4
|
+
data.tar.gz: 6353c0ce49f59955e4555117844460210816146a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92318a6ce0576bb43e5e363aede6ed54467af58785bd82543bf9a1d47bef3d1bee8c57b5f0ee18853a94f3eb77bdcf9c2b3e3b191db8240291ff94459a6b7e97
|
7
|
+
data.tar.gz: cef044a128a8804a53b02c199a1eccb9bda541a78540a0f973a879c87693e5097796db737919e3674666230bbbf1d9a8093a84e6dadcc63654e52a2be0064d99
|
data/lib/what_is/version.rb
CHANGED
data/lib/what_is.rb
CHANGED
@@ -5,19 +5,20 @@ require "uri"
|
|
5
5
|
require "nokogiri"
|
6
6
|
|
7
7
|
module WhatIs
|
8
|
-
class Define
|
9
|
-
class << self
|
10
|
-
attr_writer :configuration
|
11
|
-
end
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
class << self
|
10
|
+
attr_writer :configuration
|
11
|
+
end
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
def self.configuration
|
14
|
+
@configuration ||= Configuration.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.configure
|
18
|
+
yield(configuration)
|
19
|
+
end
|
20
20
|
|
21
|
+
class Define
|
21
22
|
def initialize(word)
|
22
23
|
@word = word.to_s
|
23
24
|
@has_definition = false
|