Class: Spikard::StaticFilesConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStaticFilesConfig

Returns a new instance of StaticFilesConfig.

Parameters:

  • directory: (String)
  • route_prefix: (String)
  • index_file: (Boolean)
  • cache_control: (String)


220
# File 'sig/types.rbs', line 220

def initialize: (directory: String, route_prefix: String, index_file: bool, ?cache_control: String) -> void

Instance Attribute Details

#cache_controlString (readonly)

Returns the value of attribute cache_control.

Returns:

  • (String)


218
219
220
# File 'sig/types.rbs', line 218

def cache_control
  @cache_control
end

#directoryString (readonly)

Returns the value of attribute directory.

Returns:

  • (String)


215
216
217
# File 'sig/types.rbs', line 215

def directory
  @directory
end

#index_fileBoolean (readonly)

Returns the value of attribute index_file.

Returns:

  • (Boolean)


217
218
219
# File 'sig/types.rbs', line 217

def index_file
  @index_file
end

#route_prefixString (readonly)

Returns the value of attribute route_prefix.

Returns:

  • (String)


216
217
218
# File 'sig/types.rbs', line 216

def route_prefix
  @route_prefix
end