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)


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

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)


234
235
236
# File 'sig/types.rbs', line 234

def cache_control
  @cache_control
end

#directoryString (readonly)

Returns the value of attribute directory.

Returns:

  • (String)


231
232
233
# File 'sig/types.rbs', line 231

def directory
  @directory
end

#index_fileBoolean (readonly)

Returns the value of attribute index_file.

Returns:

  • (Boolean)


233
234
235
# File 'sig/types.rbs', line 233

def index_file
  @index_file
end

#route_prefixString (readonly)

Returns the value of attribute route_prefix.

Returns:

  • (String)


232
233
234
# File 'sig/types.rbs', line 232

def route_prefix
  @route_prefix
end