1
0
Fork 0
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:
John Mair 2012-12-21 16:32:47 +01:00
parent eda2c73afb
commit af5a6a59ea

View file

@ -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