Exception: Exception
- Extended by:
- T::Sig
- Defined in:
- lib/cli/kit/core_ext.rb
Overview
typed: strong frozen_string_literal: true
Instance Method Summary collapse
Methods included from T::Sig
Instance Method Details
#bug!(bug = true) ⇒ Object
22 23 24 |
# File 'lib/cli/kit/core_ext.rb', line 22 def bug!(bug = true) singleton_class.define_method(:bug?) { bug } end |
#bug? ⇒ Boolean
12 13 14 |
# File 'lib/cli/kit/core_ext.rb', line 12 def bug? true end |
#silent!(silent = true) ⇒ Object
27 28 29 |
# File 'lib/cli/kit/core_ext.rb', line 27 def silent!(silent = true) singleton_class.define_method(:silent?) { silent } end |
#silent? ⇒ Boolean
17 18 19 |
# File 'lib/cli/kit/core_ext.rb', line 17 def silent? false end |