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