class Pry::CodeFile
def code
-
(String)- The code contained in the current `@filename`.
def code if @filename == Pry.eval_path Pry.line_buffer.drop(1) elsif Pry::Method::Patcher.code_for(@filename) Pry::Method::Patcher.code_for(@filename) else path = abs_path @code_type = type_from_filename(path) File.read(path) end end