Class: Method

Inherits:
Object show all
Defined in:
lib/rmtools/dev/highlight.rb,
lib/rmtools/dev/code_reader.rb

Instance Method Summary collapse

Instance Method Details

#code(all = false) ⇒ Object



591
592
593
# File 'lib/rmtools/dev/code_reader.rb', line 591

def code(all=false)
  RMTools::Reader.code_of(receiver, name, all)
end

#inspectObject



36
37
38
# File 'lib/rmtools/dev/highlight.rb', line 36

def inspect
  "#{to_s}: \n#{RMTools.highlighted_line(*source_location)}"
end