Permalink
Browse files

cleanup formatting in code

  • Loading branch information...
1 parent b4c6c75 commit e1b486cfdbda4f98cc04050f3cff87e5564139cd @moonmaster9000 committed Aug 28, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/frill/frill.rb
View
@@ -1,7 +1,7 @@
module Frill
class CyclicDependency < RuntimeError; end
- def self.included(base)
+ def self.included base
self.dependency_graph.add base
base.extend ClassMethods
end
@@ -101,7 +101,7 @@ def self.detect! nodes
new(nodes).detect!
end
- def initialize(nodes)
+ def initialize nodes
@nodes = nodes
@visited = {}
end
@@ -112,19 +112,17 @@ def detect!
end
end
-
private
-
attr_reader :nodes, :visited
- def fan_out(node)
+ def fan_out node
visited[node.label] = true
fan :next, node
fan :previous, node
end
- def fan(direction, start_node)
+ def fan direction, start_node
current_node = start_node.send direction
while current_node

0 comments on commit e1b486c

Please sign in to comment.