sorbet-struct-comparable 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +52 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +22 -0
- data/LICENSE +21 -0
- data/README.md +70 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/sorbet-struct-comparable.rb +6 -0
- data/lib/sorbet-struct-comparable/version.rb +6 -0
- data/lib/t/struct/acts_as_comparable.rb +31 -0
- data/sorbet-struct-comparable.gemspec +32 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/coderay.rbi +92 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/listen.rbi +324 -0
- data/sorbet/rbi/gems/method_source.rbi +64 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
- data/sorbet/rbi/gems/pry.rbi +1949 -0
- data/sorbet/rbi/gems/rake.rbi +644 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1930 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +361 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +5231 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +7739 -0
- data/sorbet/rbi/todo.rbi +6 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6cdc3f402081351e1da4c84bc5dc767f59d288b781763ba64be2b1f4e6d77768
|
4
|
+
data.tar.gz: c336b74f657fb64e7b29e024ceb10c02e555a82f89283f758e9984aeb6c65b5e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a505ab5eed81e5f80280e6c7f2ae68c619d561c2c4ef13ec0866249083e7092ada08d961502d4d7fdb7f289a07849fdf044eb58121e2bd8c2a802c12c8f14121
|
7
|
+
data.tar.gz: f3958b00820ff24401823af78c8b91d789fd2da090e117c15699a0a1bbb125f1770c1b1eaa32111650a8fae319ee1e3232052da12cbebf89c3cd136c754ae670
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
name: Continuous Integration
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches-ignore:
|
6
|
+
- refs/tags/*_staging
|
7
|
+
- refs/tags/*_production
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
runs-on: ubuntu-18.04
|
11
|
+
steps:
|
12
|
+
- name: Checkout branch
|
13
|
+
uses: actions/checkout@v2
|
14
|
+
- name: Extract branch name
|
15
|
+
shell: bash
|
16
|
+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
17
|
+
id: extract_branch
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: actions/setup-ruby@v1.1.1
|
20
|
+
with:
|
21
|
+
ruby-version: 2.7.1
|
22
|
+
- name: Cache gems
|
23
|
+
uses: actions/cache@v1
|
24
|
+
with:
|
25
|
+
path: vendor/bundle
|
26
|
+
key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/sorbet-struct-comparable.gemspec')
|
27
|
+
}}"
|
28
|
+
restore-keys: "${{ runner.OS }}-gem-cache-\n"
|
29
|
+
- name: Install bundler
|
30
|
+
run: (bundler -v | grep "2.1.4") || gem install bundler:2.1.4
|
31
|
+
- name: Install gems
|
32
|
+
run: bundle install --jobs $(nproc) --retry 3 --without metrics --path vendor/bundle
|
33
|
+
- name: Create cache directory
|
34
|
+
run: mkdir -p tmp/cache
|
35
|
+
- name: Typecheck with Sorbet
|
36
|
+
run: bundle exec srb tc . --ignore=/vendor
|
37
|
+
- name: Run RSpec test suite
|
38
|
+
run: bundle exec rspec spec
|
39
|
+
env:
|
40
|
+
METRICS: '1'
|
41
|
+
- name: Post to Slack if build fails
|
42
|
+
if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable')
|
43
|
+
uses: pullreminders/slack-action@master
|
44
|
+
env:
|
45
|
+
SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
|
46
|
+
with:
|
47
|
+
args: '{\"channel\":\"C33574SJJ\",\"text\":\"* ${{ github.repository }} BUILD
|
48
|
+
FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":
|
49
|
+
\"#ff0000\", \"fields\": [{\"title\": \"Branch\", \"value\":\"${{ steps.extract_branch.outputs.branch
|
50
|
+
}}\"}, {\"title\": \"Who broke it\", \"value\":\"${{ github.actor }}\"},
|
51
|
+
{ \"title\": \"Build output\", \"value\": \"https://github.com/${{ github.repository
|
52
|
+
}}/commit/${{ github.sha }}/checks\", \"short\": false }]}]}'
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.1
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in sorbet-struct-comparable.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
group :development, :test do
|
7
|
+
gem 'rake', '~> 12.0'
|
8
|
+
gem 'rspec', '~> 3.0'
|
9
|
+
gem 'pry-byebug'
|
10
|
+
gem 'sorbet'
|
11
|
+
gem 'sorbet-runtime'
|
12
|
+
end
|
13
|
+
|
14
|
+
group :development do
|
15
|
+
gem 'spring'
|
16
|
+
gem 'spring-watcher-listen'
|
17
|
+
end
|
18
|
+
|
19
|
+
group :test do
|
20
|
+
gem 'simplecov'
|
21
|
+
gem 'spring-commands-rspec'
|
22
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Bellroy Tech
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+

|
2
|
+
|
3
|
+

|
4
|
+
# Making T::Struct's comparable since 2020
|
5
|
+
|
6
|
+
If you just want some simple equality checking on your `T::Struct`'s then you've come to the right place.
|
7
|
+
|
8
|
+
Out of the box Sorbet's super useful `T::Struct`'s (<https://sorbet.org/docs/tstruct>) are not comparable meaning two separate instances (i.e. different `#object_id`'s) of a `T::Struct` with identical attributes are not equal.
|
9
|
+
|
10
|
+
This behaviour can be confusing at first glance, especially if/when you start using `T::Struct`'s alongside RSpec where expectations such as `it { is_expected.to eq my_expected_struct }` will fail.
|
11
|
+
|
12
|
+
It makes sense for this comparable behaviour to not be baked into `T::Struct`'s by default since defining what makes two instances of something equal could be seen by some as business logic, but for the 90% of cases where you just want to run `<=>` over your attributes this mixin is a solution.
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'sorbet-struct-comparable'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle install
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install sorbet-struct-comparable
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
Just include `T::Struct::ActsAsComparable` in your struct, done!
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'sorbet-struct-comparable'
|
36
|
+
|
37
|
+
class BlogPost < T::Struct
|
38
|
+
include T::Struct::ActsAsComparable
|
39
|
+
|
40
|
+
class Topic < T::Enum
|
41
|
+
enums do
|
42
|
+
Cycling = new
|
43
|
+
Music = new
|
44
|
+
Walking = new
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
const :title, String
|
49
|
+
const :topic, Topic
|
50
|
+
end
|
51
|
+
|
52
|
+
blog_post = BlogPost.new(title: 'My Blog Post', topic: BlogPost::Topic::Cycling)
|
53
|
+
different_blog_post = BlogPost.new(title: 'Another Blog Post', topic: BlogPost::Topic::Walking)
|
54
|
+
identical_blog_post = BlogPost.new(title: 'My Blog Post', topic: BlogPost::Topic::Cycling)
|
55
|
+
|
56
|
+
blog_post == different_blog_post
|
57
|
+
# => false
|
58
|
+
blog_post == identical_blog_post
|
59
|
+
# => true
|
60
|
+
```
|
61
|
+
|
62
|
+
## Development
|
63
|
+
|
64
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
65
|
+
|
66
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
67
|
+
|
68
|
+
## Contributing
|
69
|
+
|
70
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tricycle/sorbet-struct-comparable.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'sorbet-struct-comparable'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# typed: strict
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module T
|
5
|
+
class Struct
|
6
|
+
module ActsAsComparable
|
7
|
+
extend T::Sig
|
8
|
+
include ::Comparable
|
9
|
+
|
10
|
+
LESS_THAN_OTHER = -1
|
11
|
+
EQUAL = 0
|
12
|
+
|
13
|
+
sig { params(other: Object).returns(Integer) }
|
14
|
+
def <=>(other)
|
15
|
+
result = EQUAL
|
16
|
+
return LESS_THAN_OTHER if other.class != T.unsafe(self).class
|
17
|
+
|
18
|
+
T.unsafe(self).class.decorator.props.keys.map do |attribute_key|
|
19
|
+
compare_result = T.unsafe(self).send(attribute_key) <=> other.send(attribute_key)
|
20
|
+
result = if compare_result.nil?
|
21
|
+
LESS_THAN_OTHER
|
22
|
+
else
|
23
|
+
T.cast(compare_result, Integer)
|
24
|
+
end
|
25
|
+
break if result != EQUAL
|
26
|
+
end
|
27
|
+
result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative 'lib/sorbet-struct-comparable/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'sorbet-struct-comparable'
|
5
|
+
spec.version = SorbetStructComparable::VERSION
|
6
|
+
spec.authors = ['Bellroy Tech Team']
|
7
|
+
spec.email = ['michael.webb@bellroy.com', 'sam@samuelgil.es']
|
8
|
+
|
9
|
+
spec.summary = "Comparable T::Struct's for the equality focused typed Ruby developer."
|
10
|
+
spec.homepage = 'https://github.com/tricycle/sorbet-struct-comparable'
|
11
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
|
12
|
+
|
13
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
14
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
15
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = 'exe'
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.add_dependency 'sorbet-runtime', '>= 0.5'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '>= 1.13'
|
29
|
+
spec.add_development_dependency 'rake', '>= 10.0'
|
30
|
+
spec.add_development_dependency 'rspec', '>= 3.0'
|
31
|
+
spec.add_development_dependency 'sorbet', '>= 0.5'
|
32
|
+
end
|
data/sorbet/config
ADDED
@@ -0,0 +1,1041 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/byebug/all/byebug.rbi
|
9
|
+
#
|
10
|
+
# byebug-11.1.3
|
11
|
+
|
12
|
+
module Byebug
|
13
|
+
def add_catchpoint(arg0); end
|
14
|
+
def breakpoints; end
|
15
|
+
def catchpoints; end
|
16
|
+
def contexts; end
|
17
|
+
def current_context; end
|
18
|
+
def debug_load(*arg0); end
|
19
|
+
def displays; end
|
20
|
+
def displays=(arg0); end
|
21
|
+
def init_file; end
|
22
|
+
def init_file=(arg0); end
|
23
|
+
def lock; end
|
24
|
+
def mode; end
|
25
|
+
def mode=(arg0); end
|
26
|
+
def post_mortem=(arg0); end
|
27
|
+
def post_mortem?; end
|
28
|
+
def raised_exception; end
|
29
|
+
def rc_dirs; end
|
30
|
+
def run_init_script; end
|
31
|
+
def run_rc_file(rc_file); end
|
32
|
+
def self.actual_control_port; end
|
33
|
+
def self.actual_port; end
|
34
|
+
def self.add_catchpoint(arg0); end
|
35
|
+
def self.attach; end
|
36
|
+
def self.breakpoints; end
|
37
|
+
def self.catchpoints; end
|
38
|
+
def self.client; end
|
39
|
+
def self.contexts; end
|
40
|
+
def self.control; end
|
41
|
+
def self.current_context; end
|
42
|
+
def self.debug_load(*arg0); end
|
43
|
+
def self.handle_post_mortem; end
|
44
|
+
def self.interrupt; end
|
45
|
+
def self.load_settings; end
|
46
|
+
def self.lock; end
|
47
|
+
def self.parse_host_and_port(host_port_spec); end
|
48
|
+
def self.post_mortem=(arg0); end
|
49
|
+
def self.post_mortem?; end
|
50
|
+
def self.raised_exception; end
|
51
|
+
def self.server; end
|
52
|
+
def self.spawn(host = nil, port = nil); end
|
53
|
+
def self.start; end
|
54
|
+
def self.start_client(host = nil, port = nil); end
|
55
|
+
def self.start_control(host = nil, port = nil); end
|
56
|
+
def self.start_server(host = nil, port = nil); end
|
57
|
+
def self.started?; end
|
58
|
+
def self.stop; end
|
59
|
+
def self.stoppable?; end
|
60
|
+
def self.thread_context(arg0); end
|
61
|
+
def self.tracing=(arg0); end
|
62
|
+
def self.tracing?; end
|
63
|
+
def self.unlock; end
|
64
|
+
def self.verbose=(arg0); end
|
65
|
+
def self.verbose?; end
|
66
|
+
def self.wait_connection; end
|
67
|
+
def self.wait_connection=(arg0); end
|
68
|
+
def start; end
|
69
|
+
def started?; end
|
70
|
+
def stop; end
|
71
|
+
def stoppable?; end
|
72
|
+
def thread_context(arg0); end
|
73
|
+
def tracing=(arg0); end
|
74
|
+
def tracing?; end
|
75
|
+
def unlock; end
|
76
|
+
def verbose=(arg0); end
|
77
|
+
def verbose?; end
|
78
|
+
extend Byebug
|
79
|
+
include Byebug::Helpers::ReflectionHelper
|
80
|
+
end
|
81
|
+
module Kernel
|
82
|
+
def byebug; end
|
83
|
+
def debugger; end
|
84
|
+
def remote_byebug(host = nil, port = nil); end
|
85
|
+
end
|
86
|
+
module Byebug::Helpers
|
87
|
+
end
|
88
|
+
module Byebug::Helpers::ReflectionHelper
|
89
|
+
def commands; end
|
90
|
+
end
|
91
|
+
class Byebug::Context
|
92
|
+
def at_breakpoint(breakpoint); end
|
93
|
+
def at_catchpoint(exception); end
|
94
|
+
def at_end; end
|
95
|
+
def at_line; end
|
96
|
+
def at_return(return_value); end
|
97
|
+
def at_tracing; end
|
98
|
+
def backtrace; end
|
99
|
+
def dead?; end
|
100
|
+
def file(*args, &block); end
|
101
|
+
def frame; end
|
102
|
+
def frame=(pos); end
|
103
|
+
def frame_binding(*arg0); end
|
104
|
+
def frame_class(*arg0); end
|
105
|
+
def frame_file(*arg0); end
|
106
|
+
def frame_line(*arg0); end
|
107
|
+
def frame_method(*arg0); end
|
108
|
+
def frame_self(*arg0); end
|
109
|
+
def full_location; end
|
110
|
+
def ignored?; end
|
111
|
+
def ignored_file?(path); end
|
112
|
+
def interrupt; end
|
113
|
+
def line(*args, &block); end
|
114
|
+
def location; end
|
115
|
+
def processor; end
|
116
|
+
def resume; end
|
117
|
+
def self.ignored_files; end
|
118
|
+
def self.ignored_files=(arg0); end
|
119
|
+
def self.interface; end
|
120
|
+
def self.interface=(arg0); end
|
121
|
+
def self.processor; end
|
122
|
+
def self.processor=(arg0); end
|
123
|
+
def stack_size; end
|
124
|
+
def step_into(*arg0); end
|
125
|
+
def step_out(*arg0); end
|
126
|
+
def step_over(*arg0); end
|
127
|
+
def stop_reason; end
|
128
|
+
def suspend; end
|
129
|
+
def suspended?; end
|
130
|
+
def switch; end
|
131
|
+
def thnum; end
|
132
|
+
def thread; end
|
133
|
+
def tracing; end
|
134
|
+
def tracing=(arg0); end
|
135
|
+
extend Forwardable
|
136
|
+
include Byebug::Helpers::FileHelper
|
137
|
+
end
|
138
|
+
class Byebug::DebugThread < Thread
|
139
|
+
def self.inherited; end
|
140
|
+
end
|
141
|
+
class Byebug::Breakpoint
|
142
|
+
def enabled=(arg0); end
|
143
|
+
def enabled?; end
|
144
|
+
def expr; end
|
145
|
+
def expr=(arg0); end
|
146
|
+
def hit_condition; end
|
147
|
+
def hit_condition=(arg0); end
|
148
|
+
def hit_count; end
|
149
|
+
def hit_value; end
|
150
|
+
def hit_value=(arg0); end
|
151
|
+
def id; end
|
152
|
+
def initialize(arg0, arg1, arg2); end
|
153
|
+
def inspect; end
|
154
|
+
def pos; end
|
155
|
+
def self.add(file, line, expr = nil); end
|
156
|
+
def self.first; end
|
157
|
+
def self.last; end
|
158
|
+
def self.none?; end
|
159
|
+
def self.potential_line?(filename, lineno); end
|
160
|
+
def self.potential_lines(filename); end
|
161
|
+
def self.potential_lines_with_trace_points(iseq, lines); end
|
162
|
+
def self.potential_lines_without_trace_points(iseq, lines); end
|
163
|
+
def self.remove(id); end
|
164
|
+
def source; end
|
165
|
+
end
|
166
|
+
module Byebug::Helpers::FileHelper
|
167
|
+
def get_line(filename, lineno); end
|
168
|
+
def get_lines(filename); end
|
169
|
+
def n_lines(filename); end
|
170
|
+
def normalize(filename); end
|
171
|
+
def shortpath(fullpath); end
|
172
|
+
def virtual_file?(name); end
|
173
|
+
end
|
174
|
+
class Byebug::Frame
|
175
|
+
def _binding; end
|
176
|
+
def _class; end
|
177
|
+
def _method; end
|
178
|
+
def _self; end
|
179
|
+
def args; end
|
180
|
+
def c_args; end
|
181
|
+
def c_frame?; end
|
182
|
+
def current?; end
|
183
|
+
def deco_args; end
|
184
|
+
def deco_block; end
|
185
|
+
def deco_call; end
|
186
|
+
def deco_class; end
|
187
|
+
def deco_file; end
|
188
|
+
def deco_method; end
|
189
|
+
def deco_pos; end
|
190
|
+
def file; end
|
191
|
+
def initialize(context, pos); end
|
192
|
+
def line; end
|
193
|
+
def locals; end
|
194
|
+
def mark; end
|
195
|
+
def pos; end
|
196
|
+
def prefix_and_default(arg_type); end
|
197
|
+
def ruby_args; end
|
198
|
+
def to_hash; end
|
199
|
+
def use_short_style?(arg); end
|
200
|
+
include Byebug::Helpers::FileHelper
|
201
|
+
end
|
202
|
+
module Byebug::Helpers::PathHelper
|
203
|
+
def all_files; end
|
204
|
+
def bin_file; end
|
205
|
+
def gem_files; end
|
206
|
+
def glob_for(dir); end
|
207
|
+
def lib_files; end
|
208
|
+
def root_path; end
|
209
|
+
def test_files; end
|
210
|
+
end
|
211
|
+
module Byebug::Helpers::EvalHelper
|
212
|
+
def allowing_other_threads; end
|
213
|
+
def error_eval(str, binding = nil); end
|
214
|
+
def error_msg(exception); end
|
215
|
+
def in_new_thread; end
|
216
|
+
def msg(exception); end
|
217
|
+
def multiple_thread_eval(expression); end
|
218
|
+
def safe_eval(str, binding); end
|
219
|
+
def safe_inspect(var); end
|
220
|
+
def safe_to_s(var); end
|
221
|
+
def separate_thread_eval(expression); end
|
222
|
+
def silent_eval(str, binding = nil); end
|
223
|
+
def warning_eval(str, binding = nil); end
|
224
|
+
def warning_msg(exception); end
|
225
|
+
end
|
226
|
+
class Byebug::CommandNotFound < NoMethodError
|
227
|
+
def build_cmd(*args); end
|
228
|
+
def help; end
|
229
|
+
def initialize(input, parent = nil); end
|
230
|
+
def name; end
|
231
|
+
end
|
232
|
+
class Byebug::CommandProcessor
|
233
|
+
def after_repl; end
|
234
|
+
def at_breakpoint(brkpt); end
|
235
|
+
def at_catchpoint(exception); end
|
236
|
+
def at_end; end
|
237
|
+
def at_line; end
|
238
|
+
def at_return(return_value); end
|
239
|
+
def at_tracing; end
|
240
|
+
def auto_cmds_for(run_level); end
|
241
|
+
def before_repl; end
|
242
|
+
def command_list; end
|
243
|
+
def commands(*args, &block); end
|
244
|
+
def confirm(*args, &block); end
|
245
|
+
def context; end
|
246
|
+
def errmsg(*args, &block); end
|
247
|
+
def frame(*args, &block); end
|
248
|
+
def initialize(context, interface = nil); end
|
249
|
+
def interface; end
|
250
|
+
def pr(*args, &block); end
|
251
|
+
def prc(*args, &block); end
|
252
|
+
def prev_line; end
|
253
|
+
def prev_line=(arg0); end
|
254
|
+
def printer; end
|
255
|
+
def proceed!; end
|
256
|
+
def process_commands; end
|
257
|
+
def prompt; end
|
258
|
+
def prv(*args, &block); end
|
259
|
+
def puts(*args, &block); end
|
260
|
+
def repl; end
|
261
|
+
def run_auto_cmds(run_level); end
|
262
|
+
def run_cmd(input); end
|
263
|
+
def safely; end
|
264
|
+
extend Forwardable
|
265
|
+
include Byebug::Helpers::EvalHelper
|
266
|
+
end
|
267
|
+
module Byebug::Helpers::StringHelper
|
268
|
+
def camelize(str); end
|
269
|
+
def deindent(str, leading_spaces: nil); end
|
270
|
+
def prettify(str); end
|
271
|
+
end
|
272
|
+
class Byebug::Setting
|
273
|
+
def boolean?; end
|
274
|
+
def help; end
|
275
|
+
def initialize; end
|
276
|
+
def integer?; end
|
277
|
+
def self.[](name); end
|
278
|
+
def self.[]=(name, value); end
|
279
|
+
def self.find(shortcut); end
|
280
|
+
def self.help_all; end
|
281
|
+
def self.settings; end
|
282
|
+
def to_s; end
|
283
|
+
def to_sym; end
|
284
|
+
def value; end
|
285
|
+
def value=(arg0); end
|
286
|
+
end
|
287
|
+
class Byebug::History
|
288
|
+
def buffer; end
|
289
|
+
def clear; end
|
290
|
+
def default_max_size; end
|
291
|
+
def ignore?(buf); end
|
292
|
+
def initialize; end
|
293
|
+
def last_ids(number); end
|
294
|
+
def pop; end
|
295
|
+
def push(cmd); end
|
296
|
+
def restore; end
|
297
|
+
def save; end
|
298
|
+
def size; end
|
299
|
+
def size=(arg0); end
|
300
|
+
def specific_max_size(number); end
|
301
|
+
def to_s(n_cmds); end
|
302
|
+
end
|
303
|
+
class Byebug::LocalInterface < Byebug::Interface
|
304
|
+
def initialize; end
|
305
|
+
def readline(prompt); end
|
306
|
+
def with_repl_like_sigint; end
|
307
|
+
def without_readline_completion; end
|
308
|
+
end
|
309
|
+
class Byebug::ScriptInterface < Byebug::Interface
|
310
|
+
def close; end
|
311
|
+
def initialize(file, verbose = nil); end
|
312
|
+
def read_command(prompt); end
|
313
|
+
def readline(*arg0); end
|
314
|
+
end
|
315
|
+
class Byebug::RemoteInterface < Byebug::Interface
|
316
|
+
def close; end
|
317
|
+
def confirm(prompt); end
|
318
|
+
def initialize(socket); end
|
319
|
+
def print(message); end
|
320
|
+
def puts(message); end
|
321
|
+
def read_command(prompt); end
|
322
|
+
def readline(prompt); end
|
323
|
+
end
|
324
|
+
class Byebug::Interface
|
325
|
+
def autorestore; end
|
326
|
+
def autosave; end
|
327
|
+
def close; end
|
328
|
+
def command_queue; end
|
329
|
+
def command_queue=(arg0); end
|
330
|
+
def confirm(prompt); end
|
331
|
+
def errmsg(message); end
|
332
|
+
def error; end
|
333
|
+
def history; end
|
334
|
+
def history=(arg0); end
|
335
|
+
def initialize; end
|
336
|
+
def input; end
|
337
|
+
def last_if_empty(input); end
|
338
|
+
def output; end
|
339
|
+
def prepare_input(prompt); end
|
340
|
+
def print(message); end
|
341
|
+
def puts(message); end
|
342
|
+
def read_command(prompt); end
|
343
|
+
def read_file(filename); end
|
344
|
+
def read_input(prompt, save_hist = nil); end
|
345
|
+
def split_commands(cmd_line); end
|
346
|
+
include Byebug::Helpers::FileHelper
|
347
|
+
end
|
348
|
+
class Byebug::ScriptProcessor < Byebug::CommandProcessor
|
349
|
+
def after_repl; end
|
350
|
+
def commands; end
|
351
|
+
def prompt; end
|
352
|
+
def repl; end
|
353
|
+
def without_exceptions; end
|
354
|
+
end
|
355
|
+
class Byebug::PostMortemProcessor < Byebug::CommandProcessor
|
356
|
+
def commands; end
|
357
|
+
def prompt; end
|
358
|
+
end
|
359
|
+
class Byebug::Command
|
360
|
+
def arguments; end
|
361
|
+
def confirm(*args, &block); end
|
362
|
+
def context; end
|
363
|
+
def errmsg(*args, &block); end
|
364
|
+
def frame; end
|
365
|
+
def help(*args, &block); end
|
366
|
+
def initialize(processor, input = nil); end
|
367
|
+
def match(*args, &block); end
|
368
|
+
def pr(*args, &block); end
|
369
|
+
def prc(*args, &block); end
|
370
|
+
def print(*args, &block); end
|
371
|
+
def processor; end
|
372
|
+
def prv(*args, &block); end
|
373
|
+
def puts(*args, &block); end
|
374
|
+
def self.allow_in_control; end
|
375
|
+
def self.allow_in_control=(arg0); end
|
376
|
+
def self.allow_in_post_mortem; end
|
377
|
+
def self.allow_in_post_mortem=(arg0); end
|
378
|
+
def self.always_run; end
|
379
|
+
def self.always_run=(arg0); end
|
380
|
+
def self.columnize(width); end
|
381
|
+
def self.help; end
|
382
|
+
def self.match(input); end
|
383
|
+
def self.to_s; end
|
384
|
+
extend Forwardable
|
385
|
+
end
|
386
|
+
module Byebug::Helpers::ParseHelper
|
387
|
+
def get_int(str, cmd, min = nil, max = nil); end
|
388
|
+
def parse_steps(str, cmd); end
|
389
|
+
def syntax_valid?(code); end
|
390
|
+
def without_stderr; end
|
391
|
+
end
|
392
|
+
class Byebug::SourceFileFormatter
|
393
|
+
def amend(line, ceiling); end
|
394
|
+
def amend_final(line); end
|
395
|
+
def amend_initial(line); end
|
396
|
+
def annotator; end
|
397
|
+
def file; end
|
398
|
+
def initialize(file, annotator); end
|
399
|
+
def lines(min, max); end
|
400
|
+
def lines_around(center); end
|
401
|
+
def max_initial_line; end
|
402
|
+
def max_line; end
|
403
|
+
def range_around(center); end
|
404
|
+
def range_from(min); end
|
405
|
+
def size; end
|
406
|
+
include Byebug::Helpers::FileHelper
|
407
|
+
end
|
408
|
+
class Byebug::BreakCommand < Byebug::Command
|
409
|
+
def add_line_breakpoint(file, line); end
|
410
|
+
def execute; end
|
411
|
+
def line_breakpoint(location); end
|
412
|
+
def method_breakpoint(location); end
|
413
|
+
def self.description; end
|
414
|
+
def self.regexp; end
|
415
|
+
def self.short_description; end
|
416
|
+
def target_object(str); end
|
417
|
+
def valid_breakpoints_for(path, line); end
|
418
|
+
include Byebug::Helpers::EvalHelper
|
419
|
+
include Byebug::Helpers::FileHelper
|
420
|
+
include Byebug::Helpers::ParseHelper
|
421
|
+
end
|
422
|
+
class Byebug::CatchCommand < Byebug::Command
|
423
|
+
def add(exception); end
|
424
|
+
def clear; end
|
425
|
+
def execute; end
|
426
|
+
def info; end
|
427
|
+
def remove(exception); end
|
428
|
+
def self.description; end
|
429
|
+
def self.regexp; end
|
430
|
+
def self.short_description; end
|
431
|
+
include Byebug::Helpers::EvalHelper
|
432
|
+
end
|
433
|
+
class Byebug::ConditionCommand < Byebug::Command
|
434
|
+
def execute; end
|
435
|
+
def self.description; end
|
436
|
+
def self.regexp; end
|
437
|
+
def self.short_description; end
|
438
|
+
include Byebug::Helpers::ParseHelper
|
439
|
+
end
|
440
|
+
class Byebug::ContinueCommand < Byebug::Command
|
441
|
+
def execute; end
|
442
|
+
def modifier; end
|
443
|
+
def self.description; end
|
444
|
+
def self.regexp; end
|
445
|
+
def self.short_description; end
|
446
|
+
def unconditionally?; end
|
447
|
+
def until_line?; end
|
448
|
+
include Byebug::Helpers::ParseHelper
|
449
|
+
end
|
450
|
+
class Byebug::DebugCommand < Byebug::Command
|
451
|
+
def execute; end
|
452
|
+
def self.description; end
|
453
|
+
def self.regexp; end
|
454
|
+
def self.short_description; end
|
455
|
+
include Byebug::Helpers::EvalHelper
|
456
|
+
end
|
457
|
+
class Byebug::DeleteCommand < Byebug::Command
|
458
|
+
def execute; end
|
459
|
+
def self.description; end
|
460
|
+
def self.regexp; end
|
461
|
+
def self.short_description; end
|
462
|
+
include Byebug::Helpers::ParseHelper
|
463
|
+
end
|
464
|
+
class Byebug::CommandList
|
465
|
+
def each; end
|
466
|
+
def initialize(commands); end
|
467
|
+
def match(input); end
|
468
|
+
def to_s; end
|
469
|
+
def width; end
|
470
|
+
include Enumerable
|
471
|
+
end
|
472
|
+
module Byebug::Subcommands
|
473
|
+
def execute; end
|
474
|
+
def self.included(command); end
|
475
|
+
def subcommand_list(*args, &block); end
|
476
|
+
extend Forwardable
|
477
|
+
end
|
478
|
+
module Byebug::Subcommands::ClassMethods
|
479
|
+
def help; end
|
480
|
+
def subcommand_list; end
|
481
|
+
include Byebug::Helpers::ReflectionHelper
|
482
|
+
end
|
483
|
+
module Byebug::Helpers::ToggleHelper
|
484
|
+
def enable_disable_breakpoints(is_enable, args); end
|
485
|
+
def enable_disable_display(is_enable, args); end
|
486
|
+
def n_displays; end
|
487
|
+
def select_breakpoints(is_enable, args); end
|
488
|
+
include Byebug::Helpers::ParseHelper
|
489
|
+
end
|
490
|
+
class Byebug::DisableCommand < Byebug::Command
|
491
|
+
def self.description; end
|
492
|
+
def self.regexp; end
|
493
|
+
def self.short_description; end
|
494
|
+
extend Byebug::Subcommands::ClassMethods
|
495
|
+
include Byebug::Subcommands
|
496
|
+
end
|
497
|
+
class Byebug::DisableCommand::BreakpointsCommand < Byebug::Command
|
498
|
+
def execute; end
|
499
|
+
def self.description; end
|
500
|
+
def self.regexp; end
|
501
|
+
def self.short_description; end
|
502
|
+
include Byebug::Helpers::ToggleHelper
|
503
|
+
end
|
504
|
+
class Byebug::DisableCommand::DisplayCommand < Byebug::Command
|
505
|
+
def execute; end
|
506
|
+
def self.description; end
|
507
|
+
def self.regexp; end
|
508
|
+
def self.short_description; end
|
509
|
+
include Byebug::Helpers::ToggleHelper
|
510
|
+
end
|
511
|
+
class Byebug::DisplayCommand < Byebug::Command
|
512
|
+
def display_expression(exp); end
|
513
|
+
def eval_expr(expression); end
|
514
|
+
def execute; end
|
515
|
+
def print_display_expressions; end
|
516
|
+
def self.description; end
|
517
|
+
def self.regexp; end
|
518
|
+
def self.short_description; end
|
519
|
+
include Byebug::Helpers::EvalHelper
|
520
|
+
end
|
521
|
+
module Byebug::Helpers::FrameHelper
|
522
|
+
def adjust_frame(new_frame); end
|
523
|
+
def direction(step); end
|
524
|
+
def frame_err(msg); end
|
525
|
+
def index_from_start(index); end
|
526
|
+
def jump_frames(steps); end
|
527
|
+
def navigate_to_frame(jump_no); end
|
528
|
+
def out_of_bounds?(pos); end
|
529
|
+
def switch_to_frame(frame); end
|
530
|
+
end
|
531
|
+
class Byebug::DownCommand < Byebug::Command
|
532
|
+
def execute; end
|
533
|
+
def self.description; end
|
534
|
+
def self.regexp; end
|
535
|
+
def self.short_description; end
|
536
|
+
include Byebug::Helpers::FrameHelper
|
537
|
+
include Byebug::Helpers::ParseHelper
|
538
|
+
end
|
539
|
+
class Byebug::EditCommand < Byebug::Command
|
540
|
+
def edit_error(type, file); end
|
541
|
+
def editor; end
|
542
|
+
def execute; end
|
543
|
+
def location(matched); end
|
544
|
+
def self.description; end
|
545
|
+
def self.regexp; end
|
546
|
+
def self.short_description; end
|
547
|
+
end
|
548
|
+
class Byebug::EnableCommand < Byebug::Command
|
549
|
+
def self.description; end
|
550
|
+
def self.regexp; end
|
551
|
+
def self.short_description; end
|
552
|
+
extend Byebug::Subcommands::ClassMethods
|
553
|
+
include Byebug::Subcommands
|
554
|
+
end
|
555
|
+
class Byebug::EnableCommand::BreakpointsCommand < Byebug::Command
|
556
|
+
def execute; end
|
557
|
+
def self.description; end
|
558
|
+
def self.regexp; end
|
559
|
+
def self.short_description; end
|
560
|
+
include Byebug::Helpers::ToggleHelper
|
561
|
+
end
|
562
|
+
class Byebug::EnableCommand::DisplayCommand < Byebug::Command
|
563
|
+
def execute; end
|
564
|
+
def self.description; end
|
565
|
+
def self.regexp; end
|
566
|
+
def self.short_description; end
|
567
|
+
include Byebug::Helpers::ToggleHelper
|
568
|
+
end
|
569
|
+
class Byebug::FinishCommand < Byebug::Command
|
570
|
+
def execute; end
|
571
|
+
def max_frames; end
|
572
|
+
def self.description; end
|
573
|
+
def self.regexp; end
|
574
|
+
def self.short_description; end
|
575
|
+
include Byebug::Helpers::ParseHelper
|
576
|
+
end
|
577
|
+
class Byebug::FrameCommand < Byebug::Command
|
578
|
+
def execute; end
|
579
|
+
def self.description; end
|
580
|
+
def self.regexp; end
|
581
|
+
def self.short_description; end
|
582
|
+
include Byebug::Helpers::FrameHelper
|
583
|
+
include Byebug::Helpers::ParseHelper
|
584
|
+
end
|
585
|
+
class Byebug::HelpCommand < Byebug::Command
|
586
|
+
def command; end
|
587
|
+
def execute; end
|
588
|
+
def help_for(input, cmd); end
|
589
|
+
def help_for_all; end
|
590
|
+
def self.description; end
|
591
|
+
def self.regexp; end
|
592
|
+
def self.short_description; end
|
593
|
+
def subcommand; end
|
594
|
+
end
|
595
|
+
class Byebug::HistoryCommand < Byebug::Command
|
596
|
+
def execute; end
|
597
|
+
def self.description; end
|
598
|
+
def self.regexp; end
|
599
|
+
def self.short_description; end
|
600
|
+
include Byebug::Helpers::ParseHelper
|
601
|
+
end
|
602
|
+
class Byebug::InfoCommand < Byebug::Command
|
603
|
+
def self.description; end
|
604
|
+
def self.regexp; end
|
605
|
+
def self.short_description; end
|
606
|
+
extend Byebug::Subcommands::ClassMethods
|
607
|
+
include Byebug::Subcommands
|
608
|
+
end
|
609
|
+
class Byebug::InfoCommand::BreakpointsCommand < Byebug::Command
|
610
|
+
def execute; end
|
611
|
+
def info_breakpoint(brkpt); end
|
612
|
+
def self.description; end
|
613
|
+
def self.regexp; end
|
614
|
+
def self.short_description; end
|
615
|
+
end
|
616
|
+
class Byebug::InfoCommand::DisplayCommand < Byebug::Command
|
617
|
+
def execute; end
|
618
|
+
def self.description; end
|
619
|
+
def self.regexp; end
|
620
|
+
def self.short_description; end
|
621
|
+
end
|
622
|
+
class Byebug::InfoCommand::FileCommand < Byebug::Command
|
623
|
+
def execute; end
|
624
|
+
def info_file_basic(file); end
|
625
|
+
def info_file_breakpoints(file); end
|
626
|
+
def info_file_mtime(file); end
|
627
|
+
def info_file_sha1(file); end
|
628
|
+
def self.description; end
|
629
|
+
def self.regexp; end
|
630
|
+
def self.short_description; end
|
631
|
+
include Byebug::Helpers::FileHelper
|
632
|
+
include Byebug::Helpers::StringHelper
|
633
|
+
end
|
634
|
+
class Byebug::InfoCommand::LineCommand < Byebug::Command
|
635
|
+
def execute; end
|
636
|
+
def self.description; end
|
637
|
+
def self.regexp; end
|
638
|
+
def self.short_description; end
|
639
|
+
end
|
640
|
+
class Byebug::InfoCommand::ProgramCommand < Byebug::Command
|
641
|
+
def execute; end
|
642
|
+
def format_stop_reason(stop_reason); end
|
643
|
+
def self.description; end
|
644
|
+
def self.regexp; end
|
645
|
+
def self.short_description; end
|
646
|
+
end
|
647
|
+
class Byebug::InterruptCommand < Byebug::Command
|
648
|
+
def execute; end
|
649
|
+
def self.description; end
|
650
|
+
def self.regexp; end
|
651
|
+
def self.short_description; end
|
652
|
+
end
|
653
|
+
class Byebug::IrbCommand < Byebug::Command
|
654
|
+
def execute; end
|
655
|
+
def self.description; end
|
656
|
+
def self.regexp; end
|
657
|
+
def self.short_description; end
|
658
|
+
def with_clean_argv; end
|
659
|
+
end
|
660
|
+
class Byebug::KillCommand < Byebug::Command
|
661
|
+
def execute; end
|
662
|
+
def self.description; end
|
663
|
+
def self.regexp; end
|
664
|
+
def self.short_description; end
|
665
|
+
end
|
666
|
+
class Byebug::ListCommand < Byebug::Command
|
667
|
+
def amend_final(*args, &block); end
|
668
|
+
def auto_range(direction); end
|
669
|
+
def display_lines(min, max); end
|
670
|
+
def execute; end
|
671
|
+
def lower_bound(range); end
|
672
|
+
def max_line(*args, &block); end
|
673
|
+
def move(line, size, direction = nil); end
|
674
|
+
def parse_range(input); end
|
675
|
+
def range(input); end
|
676
|
+
def self.description; end
|
677
|
+
def self.regexp; end
|
678
|
+
def self.short_description; end
|
679
|
+
def size(*args, &block); end
|
680
|
+
def source_file_formatter; end
|
681
|
+
def split_range(str); end
|
682
|
+
def upper_bound(range); end
|
683
|
+
def valid_range?(first, last); end
|
684
|
+
extend Forwardable
|
685
|
+
include Byebug::Helpers::FileHelper
|
686
|
+
include Byebug::Helpers::ParseHelper
|
687
|
+
end
|
688
|
+
class Byebug::MethodCommand < Byebug::Command
|
689
|
+
def execute; end
|
690
|
+
def self.description; end
|
691
|
+
def self.regexp; end
|
692
|
+
def self.short_description; end
|
693
|
+
include Byebug::Helpers::EvalHelper
|
694
|
+
end
|
695
|
+
class Byebug::NextCommand < Byebug::Command
|
696
|
+
def execute; end
|
697
|
+
def self.description; end
|
698
|
+
def self.regexp; end
|
699
|
+
def self.short_description; end
|
700
|
+
include Byebug::Helpers::ParseHelper
|
701
|
+
end
|
702
|
+
class Byebug::PryCommand < Byebug::Command
|
703
|
+
def execute; end
|
704
|
+
def self.description; end
|
705
|
+
def self.regexp; end
|
706
|
+
def self.short_description; end
|
707
|
+
end
|
708
|
+
class Byebug::QuitCommand < Byebug::Command
|
709
|
+
def execute; end
|
710
|
+
def self.description; end
|
711
|
+
def self.regexp; end
|
712
|
+
def self.short_description; end
|
713
|
+
end
|
714
|
+
module Byebug::Helpers::BinHelper
|
715
|
+
def executable_file_extensions; end
|
716
|
+
def find_executable(path, cmd); end
|
717
|
+
def real_executable?(file); end
|
718
|
+
def search_paths; end
|
719
|
+
def which(cmd); end
|
720
|
+
end
|
721
|
+
class Byebug::RestartCommand < Byebug::Command
|
722
|
+
def execute; end
|
723
|
+
def prepend_byebug_bin(cmd); end
|
724
|
+
def prepend_ruby_bin(cmd); end
|
725
|
+
def self.description; end
|
726
|
+
def self.regexp; end
|
727
|
+
def self.short_description; end
|
728
|
+
include Byebug::Helpers::BinHelper
|
729
|
+
include Byebug::Helpers::PathHelper
|
730
|
+
end
|
731
|
+
class Byebug::SaveCommand < Byebug::Command
|
732
|
+
def execute; end
|
733
|
+
def save_breakpoints(file); end
|
734
|
+
def save_catchpoints(file); end
|
735
|
+
def save_displays(file); end
|
736
|
+
def save_settings(file); end
|
737
|
+
def self.description; end
|
738
|
+
def self.regexp; end
|
739
|
+
def self.short_description; end
|
740
|
+
end
|
741
|
+
class Byebug::SetCommand < Byebug::Command
|
742
|
+
def execute; end
|
743
|
+
def get_onoff(arg, default); end
|
744
|
+
def self.description; end
|
745
|
+
def self.help; end
|
746
|
+
def self.regexp; end
|
747
|
+
def self.short_description; end
|
748
|
+
include Byebug::Helpers::ParseHelper
|
749
|
+
end
|
750
|
+
class Byebug::ShowCommand < Byebug::Command
|
751
|
+
def execute; end
|
752
|
+
def self.description; end
|
753
|
+
def self.help; end
|
754
|
+
def self.regexp; end
|
755
|
+
def self.short_description; end
|
756
|
+
end
|
757
|
+
class Byebug::SkipCommand < Byebug::Command
|
758
|
+
def auto_run; end
|
759
|
+
def execute; end
|
760
|
+
def initialize_attributes; end
|
761
|
+
def keep_execution; end
|
762
|
+
def reset_attributes; end
|
763
|
+
def self.description; end
|
764
|
+
def self.file_line; end
|
765
|
+
def self.file_line=(arg0); end
|
766
|
+
def self.file_path; end
|
767
|
+
def self.file_path=(arg0); end
|
768
|
+
def self.previous_autolist; end
|
769
|
+
def self.regexp; end
|
770
|
+
def self.restore_autolist; end
|
771
|
+
def self.setup_autolist(value); end
|
772
|
+
def self.short_description; end
|
773
|
+
include Byebug::Helpers::ParseHelper
|
774
|
+
end
|
775
|
+
class Byebug::SourceCommand < Byebug::Command
|
776
|
+
def execute; end
|
777
|
+
def self.description; end
|
778
|
+
def self.regexp; end
|
779
|
+
def self.short_description; end
|
780
|
+
end
|
781
|
+
class Byebug::StepCommand < Byebug::Command
|
782
|
+
def execute; end
|
783
|
+
def self.description; end
|
784
|
+
def self.regexp; end
|
785
|
+
def self.short_description; end
|
786
|
+
include Byebug::Helpers::ParseHelper
|
787
|
+
end
|
788
|
+
module Byebug::Helpers::ThreadHelper
|
789
|
+
def context_from_thread(thnum); end
|
790
|
+
def current_thread?(ctx); end
|
791
|
+
def debug_flag(ctx); end
|
792
|
+
def display_context(ctx); end
|
793
|
+
def location(ctx); end
|
794
|
+
def status_flag(ctx); end
|
795
|
+
def thread_arguments(ctx); end
|
796
|
+
end
|
797
|
+
class Byebug::ThreadCommand < Byebug::Command
|
798
|
+
def self.description; end
|
799
|
+
def self.regexp; end
|
800
|
+
def self.short_description; end
|
801
|
+
extend Byebug::Subcommands::ClassMethods
|
802
|
+
include Byebug::Subcommands
|
803
|
+
end
|
804
|
+
class Byebug::ThreadCommand::CurrentCommand < Byebug::Command
|
805
|
+
def execute; end
|
806
|
+
def self.description; end
|
807
|
+
def self.regexp; end
|
808
|
+
def self.short_description; end
|
809
|
+
include Byebug::Helpers::ThreadHelper
|
810
|
+
end
|
811
|
+
class Byebug::ThreadCommand::ListCommand < Byebug::Command
|
812
|
+
def execute; end
|
813
|
+
def self.description; end
|
814
|
+
def self.regexp; end
|
815
|
+
def self.short_description; end
|
816
|
+
include Byebug::Helpers::ThreadHelper
|
817
|
+
end
|
818
|
+
class Byebug::ThreadCommand::ResumeCommand < Byebug::Command
|
819
|
+
def execute; end
|
820
|
+
def self.description; end
|
821
|
+
def self.regexp; end
|
822
|
+
def self.short_description; end
|
823
|
+
include Byebug::Helpers::ThreadHelper
|
824
|
+
end
|
825
|
+
class Byebug::ThreadCommand::StopCommand < Byebug::Command
|
826
|
+
def execute; end
|
827
|
+
def self.description; end
|
828
|
+
def self.regexp; end
|
829
|
+
def self.short_description; end
|
830
|
+
include Byebug::Helpers::ThreadHelper
|
831
|
+
end
|
832
|
+
class Byebug::ThreadCommand::SwitchCommand < Byebug::Command
|
833
|
+
def execute; end
|
834
|
+
def self.description; end
|
835
|
+
def self.regexp; end
|
836
|
+
def self.short_description; end
|
837
|
+
include Byebug::Helpers::ThreadHelper
|
838
|
+
end
|
839
|
+
class Byebug::TracevarCommand < Byebug::Command
|
840
|
+
def execute; end
|
841
|
+
def on_change(name, value, stop); end
|
842
|
+
def self.description; end
|
843
|
+
def self.regexp; end
|
844
|
+
def self.short_description; end
|
845
|
+
end
|
846
|
+
class Byebug::UndisplayCommand < Byebug::Command
|
847
|
+
def execute; end
|
848
|
+
def self.description; end
|
849
|
+
def self.regexp; end
|
850
|
+
def self.short_description; end
|
851
|
+
include Byebug::Helpers::ParseHelper
|
852
|
+
end
|
853
|
+
class Byebug::UntracevarCommand < Byebug::Command
|
854
|
+
def execute; end
|
855
|
+
def self.description; end
|
856
|
+
def self.regexp; end
|
857
|
+
def self.short_description; end
|
858
|
+
end
|
859
|
+
class Byebug::UpCommand < Byebug::Command
|
860
|
+
def execute; end
|
861
|
+
def self.description; end
|
862
|
+
def self.regexp; end
|
863
|
+
def self.short_description; end
|
864
|
+
include Byebug::Helpers::FrameHelper
|
865
|
+
include Byebug::Helpers::ParseHelper
|
866
|
+
end
|
867
|
+
module Byebug::Helpers::VarHelper
|
868
|
+
def var_args; end
|
869
|
+
def var_global; end
|
870
|
+
def var_instance(str); end
|
871
|
+
def var_list(ary, binding = nil); end
|
872
|
+
def var_local; end
|
873
|
+
include Byebug::Helpers::EvalHelper
|
874
|
+
end
|
875
|
+
class Byebug::VarCommand < Byebug::Command
|
876
|
+
def self.description; end
|
877
|
+
def self.regexp; end
|
878
|
+
def self.short_description; end
|
879
|
+
extend Byebug::Subcommands::ClassMethods
|
880
|
+
include Byebug::Subcommands
|
881
|
+
end
|
882
|
+
class Byebug::VarCommand::AllCommand < Byebug::Command
|
883
|
+
def execute; end
|
884
|
+
def self.description; end
|
885
|
+
def self.regexp; end
|
886
|
+
def self.short_description; end
|
887
|
+
include Byebug::Helpers::VarHelper
|
888
|
+
end
|
889
|
+
class Byebug::VarCommand::ArgsCommand < Byebug::Command
|
890
|
+
def execute; end
|
891
|
+
def self.description; end
|
892
|
+
def self.regexp; end
|
893
|
+
def self.short_description; end
|
894
|
+
include Byebug::Helpers::VarHelper
|
895
|
+
end
|
896
|
+
class Byebug::VarCommand::ConstCommand < Byebug::Command
|
897
|
+
def execute; end
|
898
|
+
def self.description; end
|
899
|
+
def self.regexp; end
|
900
|
+
def self.short_description; end
|
901
|
+
def str_obj; end
|
902
|
+
include Byebug::Helpers::EvalHelper
|
903
|
+
end
|
904
|
+
class Byebug::VarCommand::InstanceCommand < Byebug::Command
|
905
|
+
def execute; end
|
906
|
+
def self.description; end
|
907
|
+
def self.regexp; end
|
908
|
+
def self.short_description; end
|
909
|
+
include Byebug::Helpers::VarHelper
|
910
|
+
end
|
911
|
+
class Byebug::VarCommand::LocalCommand < Byebug::Command
|
912
|
+
def execute; end
|
913
|
+
def self.description; end
|
914
|
+
def self.regexp; end
|
915
|
+
def self.short_description; end
|
916
|
+
include Byebug::Helpers::VarHelper
|
917
|
+
end
|
918
|
+
class Byebug::VarCommand::GlobalCommand < Byebug::Command
|
919
|
+
def execute; end
|
920
|
+
def self.description; end
|
921
|
+
def self.regexp; end
|
922
|
+
def self.short_description; end
|
923
|
+
include Byebug::Helpers::VarHelper
|
924
|
+
end
|
925
|
+
class Byebug::WhereCommand < Byebug::Command
|
926
|
+
def execute; end
|
927
|
+
def print_backtrace; end
|
928
|
+
def self.description; end
|
929
|
+
def self.regexp; end
|
930
|
+
def self.short_description; end
|
931
|
+
include Byebug::Helpers::FrameHelper
|
932
|
+
end
|
933
|
+
class Byebug::ControlProcessor < Byebug::CommandProcessor
|
934
|
+
def commands; end
|
935
|
+
def prompt; end
|
936
|
+
end
|
937
|
+
module Byebug::Remote
|
938
|
+
end
|
939
|
+
class Byebug::Remote::Server
|
940
|
+
def actual_port; end
|
941
|
+
def initialize(wait_connection:, &block); end
|
942
|
+
def start(host, port); end
|
943
|
+
def wait_connection; end
|
944
|
+
end
|
945
|
+
class Byebug::Remote::Client
|
946
|
+
def connect_at(host, port); end
|
947
|
+
def initialize(interface); end
|
948
|
+
def interface; end
|
949
|
+
def socket; end
|
950
|
+
def start(host = nil, port = nil); end
|
951
|
+
def started?; end
|
952
|
+
end
|
953
|
+
module Byebug::Printers
|
954
|
+
end
|
955
|
+
class Byebug::Printers::Base
|
956
|
+
def array_of_args(collection, &_block); end
|
957
|
+
def contents; end
|
958
|
+
def contents_files; end
|
959
|
+
def locate(path); end
|
960
|
+
def parts(path); end
|
961
|
+
def translate(string, args = nil); end
|
962
|
+
def type; end
|
963
|
+
end
|
964
|
+
class Byebug::Printers::Base::MissedPath < StandardError
|
965
|
+
end
|
966
|
+
class Byebug::Printers::Base::MissedArgument < StandardError
|
967
|
+
end
|
968
|
+
class Byebug::Printers::Plain < Byebug::Printers::Base
|
969
|
+
def contents_files; end
|
970
|
+
def print(path, args = nil); end
|
971
|
+
def print_collection(path, collection, &block); end
|
972
|
+
def print_variables(variables, *_unused); end
|
973
|
+
end
|
974
|
+
class Byebug::AutoprySetting < Byebug::Setting
|
975
|
+
def banner; end
|
976
|
+
def initialize; end
|
977
|
+
def value; end
|
978
|
+
def value=(val); end
|
979
|
+
end
|
980
|
+
class Byebug::StackOnErrorSetting < Byebug::Setting
|
981
|
+
def banner; end
|
982
|
+
end
|
983
|
+
class Byebug::HistfileSetting < Byebug::Setting
|
984
|
+
def banner; end
|
985
|
+
def to_s; end
|
986
|
+
end
|
987
|
+
class Byebug::WidthSetting < Byebug::Setting
|
988
|
+
def banner; end
|
989
|
+
def to_s; end
|
990
|
+
end
|
991
|
+
class Byebug::SavefileSetting < Byebug::Setting
|
992
|
+
def banner; end
|
993
|
+
def to_s; end
|
994
|
+
end
|
995
|
+
class Byebug::FullpathSetting < Byebug::Setting
|
996
|
+
def banner; end
|
997
|
+
end
|
998
|
+
class Byebug::BasenameSetting < Byebug::Setting
|
999
|
+
def banner; end
|
1000
|
+
end
|
1001
|
+
class Byebug::ListsizeSetting < Byebug::Setting
|
1002
|
+
def banner; end
|
1003
|
+
def to_s; end
|
1004
|
+
end
|
1005
|
+
class Byebug::AutolistSetting < Byebug::Setting
|
1006
|
+
def banner; end
|
1007
|
+
def initialize; end
|
1008
|
+
def value; end
|
1009
|
+
def value=(val); end
|
1010
|
+
end
|
1011
|
+
class Byebug::AutosaveSetting < Byebug::Setting
|
1012
|
+
def banner; end
|
1013
|
+
end
|
1014
|
+
class Byebug::CallstyleSetting < Byebug::Setting
|
1015
|
+
def banner; end
|
1016
|
+
def to_s; end
|
1017
|
+
end
|
1018
|
+
class Byebug::PostMortemSetting < Byebug::Setting
|
1019
|
+
def banner; end
|
1020
|
+
def initialize; end
|
1021
|
+
def value; end
|
1022
|
+
def value=(val); end
|
1023
|
+
end
|
1024
|
+
class Byebug::HistsizeSetting < Byebug::Setting
|
1025
|
+
def banner; end
|
1026
|
+
def to_s; end
|
1027
|
+
end
|
1028
|
+
class Byebug::AutoirbSetting < Byebug::Setting
|
1029
|
+
def banner; end
|
1030
|
+
def initialize; end
|
1031
|
+
def value; end
|
1032
|
+
def value=(val); end
|
1033
|
+
end
|
1034
|
+
class Byebug::LinetraceSetting < Byebug::Setting
|
1035
|
+
def banner; end
|
1036
|
+
def value; end
|
1037
|
+
def value=(val); end
|
1038
|
+
end
|
1039
|
+
class Exception
|
1040
|
+
def __bb_context; end
|
1041
|
+
end
|