From eb493f5ac84f2d65fbd1666e1496f0a8deafa27f Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Thu, 20 Dec 2012 15:42:39 -0500 Subject: update AD::Journey to follow Rails coding conventions --- actionpack/lib/action_dispatch/journey/nodes/node.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'actionpack/lib/action_dispatch/journey/nodes/node.rb') diff --git a/actionpack/lib/action_dispatch/journey/nodes/node.rb b/actionpack/lib/action_dispatch/journey/nodes/node.rb index a372a37a90..935442ef66 100644 --- a/actionpack/lib/action_dispatch/journey/nodes/node.rb +++ b/actionpack/lib/action_dispatch/journey/nodes/node.rb @@ -8,7 +8,7 @@ module ActionDispatch attr_accessor :left, :memo - def initialize left + def initialize(left) @left = left @memo = nil end @@ -51,7 +51,7 @@ module ActionDispatch end class Dummy < Literal # :nodoc: - def initialize x = Object.new + def initialize(x = Object.new) super end @@ -71,7 +71,7 @@ module ActionDispatch alias :symbol :regexp DEFAULT_EXP = /[^\.\/\?]+/ - def initialize left + def initialize(left) super @regexp = DEFAULT_EXP end @@ -98,7 +98,7 @@ module ActionDispatch class Binary < Node # :nodoc: attr_accessor :right - def initialize left, right + def initialize(left, right) super(left) @right = right end @@ -113,7 +113,7 @@ module ActionDispatch class Or < Node # :nodoc: attr_reader :children - def initialize children + def initialize(children) @children = children end -- cgit v1.2.3