Module: FastMethodSource
- Defined in:
- lib/fast_method_source.rb
Defined Under Namespace
Modules: MethodExtensions Classes: Method, SourceNotFoundError
Constant Summary collapse
- VERSION_FILE =
The VERSION file must be in the root directory of the library.
File.('../../VERSION', __FILE__)
- VERSION =
File.exist?(VERSION_FILE) ? File.read(VERSION_FILE).chomp : '(could not find VERSION file)'
- ROOT =
The root path of Pry Theme source code.
File.(File.dirname(__FILE__))
Class Method Summary collapse
Class Method Details
.comment_and_source_for(method) ⇒ Object
41 42 43 |
# File 'lib/fast_method_source.rb', line 41 def self.comment_and_source_for(method) self.comment_for(method) + self.source_for(method) end |
.comment_for(method) ⇒ Object
37 38 39 |
# File 'lib/fast_method_source.rb', line 37 def self.comment_for(method) FastMethodSource::Method.new(method).comment end |
.source_for(method) ⇒ Object
33 34 35 |
# File 'lib/fast_method_source.rb', line 33 def self.source_for(method) FastMethodSource::Method.new(method).source end |