Class: Volt::StatStub

Inherits:
Object show all
Defined in:
lib/volt/server/template_handlers/sprockets_component_handler.rb

Instance Method Summary collapse

Instance Method Details

#digestObject



21
22
23
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 21

def digest
  "stub-digest-#{mtime}"
end

#directory?Boolean

Returns:



9
10
11
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 9

def directory?
  false
end

#file?Boolean

Returns:



13
14
15
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 13

def file?
  false
end

#mtimeObject

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

Returns:



17
18
19
# File 'lib/volt/server/template_handlers/sprockets_component_handler.rb', line 17

def stub?
  true
end