Permalink
Browse files

Cleanup whitespace.

  • Loading branch information...
1 parent 1dc121c commit 81e297bd431a43db5adca3dca527272e8e7094eb @netzpirat netzpirat committed Jun 20, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/guard/interactor.rb
View
16 lib/guard/interactor.rb
@@ -5,7 +5,7 @@ module Guard
autoload :SimpleInteractor, 'guard/interactors/simple'
autoload :DslDescriber, 'guard/dsl_describer'
autoload :UI, 'guard/ui'
-
+
# The interactor triggers specific action from input
# read by a interactor implementation.
#
@@ -102,7 +102,7 @@ def self.auto_detect
def self.available?(silent = false)
true
end
-
+
# Start the line reader in its own thread.
#
def start
@@ -211,7 +211,7 @@ def help
#
def extract_scopes_and_action(line)
entries = line.split(' ')
-
+
scopes = extract_scopes(entries)
action = extract_action(entries)
@@ -230,21 +230,21 @@ def extract_scopes_and_action(line)
#
def extract_scopes(entries)
scopes = { }
-
+
entries.delete_if do |entry|
if guard = ::Guard.guards(entry)
scopes[:guard] ||= guard
true
-
+
elsif group = ::Guard.groups(entry)
scopes[:group] ||= group
true
-
+
else
false
end
end
-
+
scopes
end
@@ -265,7 +265,7 @@ def extract_action(entries)
false
end
end
-
+
action
end

0 comments on commit 81e297b

Please sign in to comment.