]> git.wincent.com - walrat.git/blob - lib/walrat/additions/proc.rb
doc: Remove references to Gitorious
[walrat.git] / lib / walrat / additions / proc.rb
1 # Copyright 2007-2014 Greg Hurrell. All rights reserved.
2 # Licensed under the terms of the BSD 2-clause license.
3
4 require 'walrat'
5
6 class Proc
7   include Walrat::ParsletCombining
8
9   # Returns a ProcParslet based on the receiver
10   def to_parseable
11     Walrat::ProcParslet.new self
12   end
13 end # class Proc