nebrija 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/nebrija +1 -1
- data/lib/nebrija/parser.rb +1 -4
- metadata +1 -1
data/bin/nebrija
CHANGED
data/lib/nebrija/parser.rb
CHANGED
@@ -15,7 +15,6 @@ class Parser
|
|
15
15
|
|
16
16
|
return {:status => 'error', :message => 'Word does not exist. Sorry.'} if !valid?
|
17
17
|
perform
|
18
|
-
|
19
18
|
end
|
20
19
|
|
21
20
|
def single?
|
@@ -70,16 +69,14 @@ class Parser
|
|
70
69
|
|
71
70
|
def perform
|
72
71
|
response = nil
|
73
|
-
type = 'single'
|
74
72
|
if single?
|
75
73
|
response = parse_single
|
76
74
|
else
|
77
75
|
response = parse_multiple
|
78
|
-
type = 'multiple'
|
79
76
|
end
|
80
77
|
{
|
81
78
|
:status => 'success',
|
82
|
-
:type =>
|
79
|
+
:type => if single? then 'single' else 'multiple' end,
|
83
80
|
:response => response
|
84
81
|
}
|
85
82
|
end
|