Class: Volt::StatStub
- Defined in:
- lib/volt/server/template_handlers/sprockets_component_handler.rb
Instance Method Summary collapse
- #digest ⇒ Object
- #directory? ⇒ Boolean
- #file? ⇒ Boolean
-
#mtime ⇒ Object
Get the mtime from the forking server.
- #stub? ⇒ Boolean
Instance Method Details
#digest ⇒ Object
21 22 23 |
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 21 def digest "stub-digest-#{mtime}" end |
#directory? ⇒ Boolean
9 10 11 |
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 9 def directory? false end |
#file? ⇒ Boolean
13 14 15 |
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 13 def file? false end |
#mtime ⇒ Object
Get the mtime from the forking server
26 27 28 |
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 26 def mtime Volt::Dispatcher.component_last_modified_time.to_s end |
#stub? ⇒ Boolean
17 18 19 |
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 17 def stub? true end |