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