Module | MethodSource |
In: |
lib/method_source.rb
lib/method_source/source_location.rb lib/method_source/version.rb |
VERSION | = | "0.7.1" |
Helper method responsible for opening source file and buffering up the comments for a specified method. Defined here to avoid polluting `Method` class. @param [Array] source_location The array returned by Method#source_location @return [String] The comments up to the point of the method.
Helper method responsible for extracting method body. Defined here to avoid polluting `Method` class. @param [Array] source_location The array returned by Method#source_location @return [File] The opened source file