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)


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

Instance Method Details

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

Returns:

  • (Boolean)


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