Method: Jets::Stack::Function#lang
- Defined in:
- lib/jets/stack/function.rb
#lang ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jets/stack/function.rb', line 16 def lang return if internal? if source_file # Detect language from file extension ext = File.extname(source_file).sub(/^\./,'').to_sym lang_map[ext] else puts "WARN: Unable to find a source file for function. Looked at: #{search_expression}".color(:yellow) end end |