edge badge

Keeps all information about view path and builds virtual path.

Methods
B
N
T
Attributes
[R] name
[R] partial
[R] partial?
[R] prefix
[R] virtual
Class Public methods
build(name, prefix, partial)
# File actionview/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)
# File actionview/lib/action_view/template/resolver.rb, line 24
def initialize(name, prefix, partial, virtual)
  @name    = name
  @prefix  = prefix
  @partial = partial
  @virtual = virtual
end
Instance Public methods
to_s()
Alias for: to_str
to_str()
Also aliased as: to_s
# File actionview/lib/action_view/template/resolver.rb, line 31
def to_str
  @virtual
end