Class: Ichiban::PartialHTMLFile

Inherits:
ProjectFile show all
Defined in:
lib/ichiban/project_file.rb

Instance Attribute Summary

Attributes inherited from ProjectFile

#abs, #rel

Instance Method Summary collapse

Methods inherited from ProjectFile

#dest, from_abs, #has_dest?, #initialize, register_type, #rel_to, #replace_ext

Constructor Details

This class inherits a constructor from Ichiban::ProjectFile

Instance Method Details

#partial_nameObject

Returns something like ‘foo/bar’



93
94
95
96
97
98
# File 'lib/ichiban/project_file.rb', line 93

def partial_name
  File.basename(
    @abs.slice(Ichiban.project_root.length + 1..-1),
    File.extname(@abs)
  )
end

#updateObject



100
101
102
# File 'lib/ichiban/project_file.rb', line 100

def update
  # no-op
end