add changelog & docs for Pry.main
This commit is contained in:
parent
b13029d21d
commit
88b064c96a
|
@ -27,6 +27,7 @@
|
||||||
* lazy load `Pry::InputCompleter` or `Pry::BondCompleter`.
|
* lazy load `Pry::InputCompleter` or `Pry::BondCompleter`.
|
||||||
- `Pry::BondCompleter` is loaded when the "bond" gem is available and editline is not being used(OSX)
|
- `Pry::BondCompleter` is loaded when the "bond" gem is available and editline is not being used(OSX)
|
||||||
* add option to disable input completer through `_pry_.config.completer = nil`
|
* add option to disable input completer through `_pry_.config.completer = nil`
|
||||||
|
* add `Pry.main`. returns a special instance of Object referenced by self of `TOPLEVEL_BINDING`: "main".
|
||||||
* add `Pry::LastException` (#1145)
|
* add `Pry::LastException` (#1145)
|
||||||
|
|
||||||
#### Bug fixes, etc.
|
#### Bug fixes, etc.
|
||||||
|
|
|
@ -34,6 +34,10 @@ class Pry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# @return [main]
|
||||||
|
# returns the special instance of Object, "main".
|
||||||
|
#
|
||||||
def self.main
|
def self.main
|
||||||
@main ||= TOPLEVEL_BINDING.eval "self"
|
@main ||= TOPLEVEL_BINDING.eval "self"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue