Module: NREPL
- Defined in:
- lib/nrepl.rb,
lib/nrepl/server.rb,
lib/nrepl/connection.rb,
lib/nrepl/fake_stdout.rb
Defined Under Namespace
Modules: DefinitionFixer, MethodLocationFixer, ThreadPatch Classes: Connection, FakeStdout, Server
Constant Summary collapse
- VERSION =
'0.1.0'- DEFAULT_PORT =
7888- DEFAULT_HOST =
'127.0.0.1'- PORT_FILENAME =
'.nrepl-port'- @@watches =
{}
- @@connections =
Set.new
Class Method Summary collapse
Class Method Details
.watch!(binding, id = nil) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/nrepl.rb', line 13 def self.watch!(binding, id=nil) (file, row) = caller[0].split(/:/) id ||= "#{file}:#{row}" row = row.to_i @@watches[id] = {binding: binding} @@connections.each do |connection| connection.send_msg( 'op' => 'hit_watch', 'id' => id, 'file' => file, 'line' => row, 'status' => ['done'] ) end nil end |