Module: Spinny

Defined in:
lib/spinny.rb,
lib/spinny/server.rb,
lib/spinny/version.rb,
lib/spinny/connection.rb,
lib/spinny/load_client.rb,
lib/spinny/listen_client.rb,
lib/spinny/interactive_client.rb

Overview

A lighter, less opinionated Ruby pre-loader

Defined Under Namespace

Classes: Connection, InteractiveClient, ListenClient, LoadClient, Server

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.serve!(filepath, load_paths = []) ⇒ Object

Block the current thread and boot up a server



11
12
13
14
15
# File 'lib/spinny.rb', line 11

def self.serve!(filepath, load_paths = [])
  puts "Starting Spinny::Server..."
  load_paths.each { |p| $: << p }
  Server.new(filepath).start!
end