method
method_missing
v3.0.0 -
Show latest stable
- Class:
Rails::Paths::PathParent
method_missing(id, *args)public
No documentation available.
# File railties/lib/rails/paths.rb, line 8
def method_missing(id, *args)
name = id.to_s
if name =~ /^(.*)=$/ || args.any?
@children[$1 || name] = Path.new(@root, *args)
elsif path = @children[name]
path
else
super
end
end