module Lookbook::Lang
Constants
- LANGUAGES
Public Class Methods
find(name)
click to toggle source
# File lib/lookbook/lang.rb, line 32 def find(name) LANGUAGES.find { |l| l[:name] == name.to_s } end
guess(path)
click to toggle source
# File lib/lookbook/lang.rb, line 36 def guess(path) ext = File.extname(path) LANGUAGES.find { |l| l[:ext] == ext } end