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.
124 125 126 127 128 |
# File 'lib/action_view/template/resolver.rb', line 124 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: ==
130 131 132 |
# File 'lib/action_view/template/resolver.rb', line 130 def eql?(resolver) self.class.equal?(resolver.class) && to_path == resolver.to_path end |