Top Level Namespace
Defined Under Namespace
Modules: Byebug, ConvenientService
Constant Summary collapse
- CS =
::ConvenientService
Instance Method Summary collapse
-
#b(*args) ⇒ Object
Works in a similar way as
p
, but forbyebug
. - #ce ⇒ Object
-
#ds(first_string, second_string) ⇒ nil
private
Defines
ds
helper in order to have a quick way to find differences between strings likegit diff
. - #erb ⇒ Object
- #forwardable ⇒ Object
- #logger ⇒ Object
- #pathname ⇒ Object
-
#queries ⇒ Object
This file load extracted dependencies.
- #rubygems ⇒ Object
- #singleton ⇒ Object
- #thread ⇒ Object
Instance Method Details
#b(*args) ⇒ Object
Works in a similar way as p
, but for byebug
.
7 8 9 10 11 12 13 14 |
# File 'lib/convenient_service/dependencies/extractions/b.rb', line 7 def b(*args) require "byebug" require "byebug/core" ::Byebug.attach args.one? ? args.first : args end |
#ce ⇒ Object
Note:
ce
is short for catch_exception
.
10 11 12 13 14 15 16 |
# File 'lib/convenient_service/dependencies/extractions/ce.rb', line 10 def ce yield nil rescue => exception exception end |
#ds(first_string, second_string) ⇒ nil
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Note:
`ds' is a dev-only helper.
Note:
ds
is a short for diff_strings
.
Defines ds
helper in order to have a quick way to find differences between strings like git diff
.
41 42 43 44 45 |
# File 'lib/convenient_service/dependencies/extractions/ds.rb', line 41 def ds(first_string, second_string) require "diffy" puts ::Diffy::Diff.new(first_string, second_string).to_s(:color) end |
#erb ⇒ Object
29 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 29 require "erb" |
#forwardable ⇒ Object
22 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 22 require "forwardable" |
#logger ⇒ Object
36 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 36 require "logger" |
#pathname ⇒ Object
15 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 15 require "pathname" |
#queries ⇒ Object
This file load extracted dependencies.
17 |
# File 'lib/convenient_service/dependencies/only_queries.rb', line 17 require_relative "queries" |
#rubygems ⇒ Object
44 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 44 require "rubygems" |
#singleton ⇒ Object
51 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 51 require "singleton" |
#thread ⇒ Object
58 |
# File 'lib/convenient_service/dependencies/built_in.rb', line 58 require "thread" |