Class: ActionView::FileSystemResolver

Inherits:
PathResolver show all
Defined in:
lib/action_view/template/resolver.rb

Constant Summary

Constants inherited from PathResolver

PathResolver::EXTENSION_ORDER

Instance Method Summary collapse

Methods inherited from PathResolver

#to_s

Methods inherited from Resolver

#clear_cache, #find_all

Constructor Details

#initialize(path) ⇒ FileSystemResolver

Returns a new instance of FileSystemResolver.

Raises:

  • (ArgumentError)

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.expand_path(path)
end

Instance Method Details

#eql?(resolver) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)

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