diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-12-20 15:42:39 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-12-20 15:42:39 -0500 |
commit | eb493f5ac84f2d65fbd1666e1496f0a8deafa27f (patch) | |
tree | 6c8226f652f99648a1898c2cfa33f9aa13041925 /actionpack/lib/action_dispatch/journey/nodes/node.rb | |
parent | 42b555dcf3d3dfc8c4b56e6bf903389f014bf05e (diff) | |
download | rails-eb493f5ac84f2d65fbd1666e1496f0a8deafa27f.tar.gz rails-eb493f5ac84f2d65fbd1666e1496f0a8deafa27f.tar.bz2 rails-eb493f5ac84f2d65fbd1666e1496f0a8deafa27f.zip |
update AD::Journey to follow Rails coding conventions
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/nodes/node.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/nodes/node.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |