diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-04 23:38:21 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-04 23:38:21 +0530 |
commit | 3e7a8ccdc405b1cfbec4454339483fe8b2574e1b (patch) | |
tree | bc71046a7e81fc0fda089716788775e30f565540 /railties/lib/rails/paths.rb | |
parent | cea3b3cc9d645592945289c116a6e7c7ff9ec489 (diff) | |
download | rails-3e7a8ccdc405b1cfbec4454339483fe8b2574e1b.tar.gz rails-3e7a8ccdc405b1cfbec4454339483fe8b2574e1b.tar.bz2 rails-3e7a8ccdc405b1cfbec4454339483fe8b2574e1b.zip |
formatting results in comments
Diffstat (limited to 'railties/lib/rails/paths.rb')
-rw-r--r-- | railties/lib/rails/paths.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index d15887f561..582c7685cf 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -31,23 +31,23 @@ module Rails # This means we can get a Path object back like below: # # path = root["app/controllers"] - # path.eager_load? #=> true - # path.is_a?(Rails::Paths::Path) #=> true + # path.eager_load? # => true + # path.is_a?(Rails::Paths::Path) # => true # # The Path object is simply an array and allows you to easily add extra paths: # - # path.is_a?(Array) #=> true - # path.inspect #=> ["app/controllers"] + # path.is_a?(Array) # => true + # path.inspect # => ["app/controllers"] # # path << "lib/controllers" - # path.inspect #=> ["app/controllers", "lib/controllers"] + # path.inspect # => ["app/controllers", "lib/controllers"] # # Notice that when you add a path using #add, the path object created already # contains the path with the same path value given to #add. In some situations, # you may not want this behavior, so you can give :with as option. # # root.add "config/routes", :with => "config/routes.rb" - # root["config/routes"].inspect #=> ["config/routes.rb"] + # root["config/routes"].inspect # => ["config/routes.rb"] # # #add also accepts the following options as argument: eager_load, autoload, # autoload_once and glob. @@ -58,8 +58,8 @@ module Rails # root.path = "/rails" # root.add "app/controllers" # - # root["app/controllers"].expanded #=> ["/rails/app/controllers"] - # root["app/controllers"].existent #=> ["/rails/app/controllers"] + # root["app/controllers"].expanded # => ["/rails/app/controllers"] + # root["app/controllers"].existent # => ["/rails/app/controllers"] # # Check the Path documentation for more information. class Root < ::Hash |