We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7251805 commit 24ecdfaCopy full SHA for 24ecdfa
.rubocop.yml
@@ -18,3 +18,9 @@ Style/Documentation:
18
19
Style/SpecialGlobalVars:
20
Enabled: false
21
+
22
+Style/CharacterLiteral:
23
+ Enabled: false
24
25
+Lint/NestedMethodDefinition:
26
examples/demo.rb
@@ -23,5 +23,4 @@ def run
recipients.each(&:close)
end
-at_exit { run unless $! } unless @at_exit_installed
27
-@at_exit_installed = true
+Demo.launcher { run unless $! }
examples/demo_helper.rb
@@ -21,6 +21,9 @@ def self.input_pipe(source)
reader
+ # one-shot method
+ def self.launcher(&)=at_exit(&) && def self.launcher()=??
# Example registry
28
@example_classes = []
29
class << self
0 commit comments