diff options
Diffstat (limited to 'lib/pry/code')
-rw-r--r-- | lib/pry/code/code_file.rb | 2 | ||||
-rw-r--r-- | lib/pry/code/code_range.rb | 2 | ||||
-rw-r--r-- | lib/pry/code/loc.rb | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/pry/code/code_file.rb b/lib/pry/code/code_file.rb index 5464183a..7ac6ef0e 100644 --- a/lib/pry/code/code_file.rb +++ b/lib/pry/code/code_file.rb @@ -1,3 +1,5 @@ +require 'method_source' + class Pry class CodeFile DEFAULT_EXT = '.rb'.freeze diff --git a/lib/pry/code/code_range.rb b/lib/pry/code/code_range.rb index a28bdedb..51d32a2e 100644 --- a/lib/pry/code/code_range.rb +++ b/lib/pry/code/code_range.rb @@ -1,3 +1,5 @@ +require 'coderay' + class Pry class Code # Represents a range of lines in a code listing. diff --git a/lib/pry/code/loc.rb b/lib/pry/code/loc.rb index 4cc07063..5ec4ed87 100644 --- a/lib/pry/code/loc.rb +++ b/lib/pry/code/loc.rb @@ -1,3 +1,5 @@ +require 'coderay' + class Pry class Code # Represents a line of code (which may, in fact, contain multiple lines if |