Class: Cyperful::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/cyperful.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



22
23
24
25
26
27
28
29
30
# File 'lib/cyperful.rb', line 22

def initialize
  super(
    port: 3004,
    auto_run_on_reload: true,
    reload_test_files: true,
    editor_scheme: "vscode",
    history_recording: true,
  )
end

Instance Attribute Details

#auto_run_on_reloadObject

Returns the value of attribute auto_run_on_reload

Returns:

  • (Object)

    the current value of auto_run_on_reload



13
14
15
# File 'lib/cyperful.rb', line 13

def auto_run_on_reload
  @auto_run_on_reload
end

#editor_schemeObject

Returns the value of attribute editor_scheme

Returns:

  • (Object)

    the current value of editor_scheme



13
14
15
# File 'lib/cyperful.rb', line 13

def editor_scheme
  @editor_scheme
end

#history_recordingObject

Returns the value of attribute history_recording

Returns:

  • (Object)

    the current value of history_recording



13
14
15
# File 'lib/cyperful.rb', line 13

def history_recording
  @history_recording
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



13
14
15
# File 'lib/cyperful.rb', line 13

def port
  @port
end

#reload_test_filesObject

Returns the value of attribute reload_test_files

Returns:

  • (Object)

    the current value of reload_test_files



13
14
15
# File 'lib/cyperful.rb', line 13

def reload_test_files
  @reload_test_files
end