Class: ActionView::FileSystemResolver
- Inherits:
-
PathResolver
- Object
- Resolver
- PathResolver
- ActionView::FileSystemResolver
- Defined in:
- actionpack/lib/action_view/template/resolver.rb
Constant Summary
Constant Summary
Constants inherited from PathResolver
Instance Method Summary (collapse)
- - (Boolean) eql?(resolver) (also: #==)
-
- (FileSystemResolver) initialize(path)
constructor
A new instance of FileSystemResolver.
Methods inherited from PathResolver
Methods inherited from Resolver
Constructor Details
- (FileSystemResolver) initialize(path)
A new instance of FileSystemResolver
114 115 116 117 118 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 114 def initialize(path) raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver) super() @path = File.(path) end |
Instance Method Details
- (Boolean) eql?(resolver) Also known as: ==
120 121 122 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 120 def eql?(resolver) self.class.equal?(resolver.class) && to_path == resolver.to_path end |