Sha256: 474e841c2c60448f7bf71b6644d516d976e24d4e1f3fd2d45db883d1c3e1c844

Contents?: true

Size: 159 Bytes

Versions: 2

Compression:

Stored size: 159 Bytes

Contents

# frozen_string_literal: true

class MyServerConfig
  def url
    if @port
      "http://#{@host}:#{@port}"
    else
      "http://#{@host}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinclair-1.3.4 spec/support/models/my_server_config.rb
sinclair-1.3.3 spec/support/models/my_server_config.rb