Sha256: 192b681137ec7410d5e60043c55977fd680bea4853cb99ed2e2cf2485e2f5fa7
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
module ActionviewPrecompiler class TemplateFile attr_reader :fullpath, :relative_path, :virtual_path attr_reader :action, :prefix, :details def initialize(fullpath, relative_path) @fullpath = fullpath @relative_path = relative_path @virtual_path = relative_path.slice(0, relative_path.index(".")) parsed = ParsedFilename.new(relative_path) @prefix = parsed.prefix @action = parsed.action @partial = parsed.partial? @details = parsed.details end def partial? @partial end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionview_precompiler-0.4.0 | lib/actionview_precompiler/template_file.rb |
actionview_precompiler-0.3.0 | lib/actionview_precompiler/template_file.rb |