Keeps all information about view path and builds virtual path.

Methods

Attributes

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

Class Public methods

build(name, prefix, partial)

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 18
      def self.build(name, prefix, partial)
        virtual = +""
        virtual << "#{prefix}/" unless prefix.empty?
        virtual << (partial ? "_#{name}" : name)
        new name, prefix, partial, virtual
      end
🔎 See on GitHub

new(name, prefix, partial, virtual)

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 25
      def initialize(name, prefix, partial, virtual)
        @name    = name
        @prefix  = prefix
        @partial = partial
        @virtual = virtual
      end
🔎 See on GitHub

Instance Public methods

to_s()

Alias for: to_str

to_str()

Also aliased as: to_s
📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 32
      def to_str
        @virtual
      end
🔎 See on GitHub