mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added Pry::Command.doc method
This brings Pry::Command API inline with Pry::Method and Pry::WrappedModule, so that we can treat them the same as 'Code objects' in certain situations
This commit is contained in:
parent
eda2c73afb
commit
af5a6a59ea
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ class Pry
|
|||
strip_leading_whitespace(Pry::Code.from_file(file).expression_at(line))
|
||||
end
|
||||
|
||||
def doc
|
||||
new.help
|
||||
end
|
||||
|
||||
def source_location
|
||||
block.source_location
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue