Git 'dashed' commands are deprecated and no longer available with new installs from...
[git-blog.git] / lib / git-blog / core_ext / file.rb
blob4fc581e10c2b268518338f98439780b7cf1a309e
1 class File
2   Extensions = %r=^(markdown|textile|haml|sass|css|html|xhtml|rb|txt|text|atom|rss|xml)$=i
3   module Extension
4     def method_missing(meth, *args)
5       if Extensions =~ meth.to_s
6         [self, '.', meth.to_s].join
7       else
8         super
9       end # if
10     end # method_missing
11   end # Extension
12 end # File