diff options
author | mms <git@sapka.me> | 2025-01-08 21:24:33 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2025-01-08 21:24:33 +0100 |
commit | 4004a55b0e324c35cbc7d58b831e49efd484ab93 (patch) | |
tree | 3ff4c68c28165b6d08c1a49532e8421193433d65 /new/lib/crys/server.rb | |
parent | 2781360c7c25404c5a1fd03ed3472d43367ed8c6 (diff) |
feat: rubocop
Diffstat (limited to 'new/lib/crys/server.rb')
-rw-r--r-- | new/lib/crys/server.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/new/lib/crys/server.rb b/new/lib/crys/server.rb index aa0c19c3..cc43b396 100644 --- a/new/lib/crys/server.rb +++ b/new/lib/crys/server.rb @@ -1,4 +1,6 @@ -require 'webrick' +# frozen_string_literal: true + +require 'webrick' module Crys class Server def initialize(root:) @@ -6,16 +8,16 @@ module Crys end def start - server = WEBrick::HTTPServer.new :Port => 8000, :DocumentRoot => root - trap 'INT' do server.shutdown end + server = WEBrick::HTTPServer.new Port: 8000, DocumentRoot: root + trap 'INT' do + server.shutdown + end server.start end - private - - attr_reader :root + private + attr_reader :root end end - |