Method: ActionView::Resolver::Path.build

Defined in:
actionview/lib/action_view/template/resolver.rb

.build(name, prefix, partial) ⇒ Object



16
17
18
19
20
21
# File 'actionview/lib/action_view/template/resolver.rb', line 16

def self.build(name, prefix, partial)
  virtual = ""
  virtual << "#{prefix}/" unless prefix.empty?
  virtual << (partial ? "_#{name}" : name)
  new name, prefix, partial, virtual
end