class ActionView::Resolver::Path - actionview-4.2.4 Documentation

# class ActionView::Resolver::Path

Keeps all information about view path and builds virtual path.

### Attributes

name[R]
partial[R]
partial?[R]
prefix[R]
virtual[R]

### Public Class Methods

build(name, prefix, partial) click to toggle source

    # File lib/action_view/template/resolver.rb, line 17
    def self.build(name, prefix, partial)
      virtual = ""
      virtual << "#{prefix}/" unless prefix.empty?
      virtual << (partial ? "_#{name}" : name)
      new name, prefix, partial, virtual
    end

new(name, prefix, partial, virtual) click to toggle source

    # File lib/action_view/template/resolver.rb, line 24
    def initialize(name, prefix, partial, virtual)
      @name    = name
      @prefix  = prefix
      @partial = partial
      @virtual = virtual
    end

### Public Instance Methods

to_s()
Alias for: to_str
to_str() click to toggle source

    # File lib/action_view/template/resolver.rb, line 31
    def to_str
      @virtual
    end

Also aliased as: to_s