github/linguist — pull request #319 by parkr (2012-12-19 06:28:26+00:00)
Title: ContentsBlob: run analysis on a String

I'd love to use Linguist for a project which does not interact with the filesystem.

I'd love to allow for:

```ruby
code = "class Person; def name; "Josh"; end; end"

Linguist::FileBlob.new(code).language.name #=> "Ruby"
```