# File lib/cuba.rb, line 206 def extension(ext = "\\w+") lambda { consume("([^\\/]+?)\.#{ext}\\z") } end