Exception: Exception
- Defined in:
- lib/cli/kit/core_ext.rb
Overview
typed: strict frozen_string_literal: true
Instance Method Summary collapse
-
#bug!(bug = true) ⇒ Object
: (?bool bug) -> void.
-
#bug? ⇒ Boolean
: -> bool.
-
#silent!(silent = true) ⇒ Object
: (?bool silent) -> void.
-
#silent? ⇒ Boolean
: -> bool.
Instance Method Details
#bug!(bug = true) ⇒ Object
: (?bool bug) -> void
20 21 22 |
# File 'lib/cli/kit/core_ext.rb', line 20 def bug!(bug = true) singleton_class.define_method(:bug?) { bug } end |
#bug? ⇒ Boolean
: -> bool
10 11 12 |
# File 'lib/cli/kit/core_ext.rb', line 10 def bug? true end |
#silent!(silent = true) ⇒ Object
: (?bool silent) -> void
25 26 27 |
# File 'lib/cli/kit/core_ext.rb', line 25 def silent!(silent = true) singleton_class.define_method(:silent?) { silent } end |
#silent? ⇒ Boolean
: -> bool
15 16 17 |
# File 'lib/cli/kit/core_ext.rb', line 15 def silent? false end |