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)
Link
Source:
show
| on GitHub
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)
Link
Source:
show
| on GitHub
def initialize(name, prefix, partial, virtual)
@name = name
@prefix = prefix
@partial = partial
@virtual = virtual
end
Instance Public methods