** switches and references :PROPERTIES: :DATE: 2009-11-20 :END: #+begin_src ruby -n -r -l "(ref:%s)" :results output class Schulte def self.eric puts :imp # (ref:imp) end end Schulte.eric #+end_src : imp Line no. [[(imp)]] is important! #+begin_src ruby -n -r -l "(ref:%s)" :results output class Schulte def self.eric puts :imp # (ref:imp) end end Schulte.eric # (ref:output) #+end_src : imp