class ActionView::FileSystemResolver

A resolver that loads files from the filesystem.

Attributes

path[R]

Public Class Methods

new(path, pattern = nil) click to toggle source
Calls superclass method ActionView::Resolver.new
# File lib/action_view/template/resolver.rb, line 301
def initialize(path, pattern = nil)
  raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver)
  super(pattern)
  @path = File.expand_path(path)
end

Public Instance Methods

==(resolver)
Alias for: eql?
eql?(resolver) click to toggle source
# File lib/action_view/template/resolver.rb, line 312
def eql?(resolver)
  self.class.equal?(resolver.class) && to_path == resolver.to_path
end
Also aliased as: ==
to_path()
Alias for: to_s
to_s() click to toggle source
# File lib/action_view/template/resolver.rb, line 307
def to_s
  @path.to_s
end
Also aliased as: to_path