Class: UnboundMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/executable/core_ext.rb

Defined Under Namespace

Modules: Source

Instance Method Summary collapse

Instance Method Details

#commentObject



16
17
18
# File 'lib/executable/core_ext.rb', line 16

def comment
  Source.get_above_comment(*source_location)
end

#source_locationObject



4
5
6
# File 'lib/executable/core_ext.rb', line 4

def source_location
  [__file__, __line__] rescue nil
end