Sha256: d0d52a07a27546cfed30d519e0eacabcbc2d3cb2e09320c7a88ec90ecfd72052
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "ko" class MyApplication < KO::Application end class MyObject < KO::Object signal :something # def on_ready do # pp("Ready #{id}") # end end MyApplication[] do x = MyObject["first"] do signal :blah MyObject["second"] on_ready do pp("Ready #{id}") end end t = MyObject["third"] t.parent = x end pp MyApplication.instance
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ko-0.1.2 | exe/ko |