Skip to content

Commit

Permalink
Adding a comment about what to expect from Tilt.registered?
Browse files Browse the repository at this point in the history
  • Loading branch information
gus committed Mar 18, 2010
1 parent 00ce3f7 commit 779c398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tilt.rb
Expand Up @@ -16,6 +16,7 @@ def self.register(ext, template_class)
mappings[ext.downcase] = template_class
end

# Returns true when a template exists on an exact match of the provided file extension
def self.registered?(ext)
mappings.key?(ext.downcase)
end
Expand Down

0 comments on commit 779c398

Please sign in to comment.