Method: OMF::Web::Widget::Code::CodeWidget#code_type
- Defined in:
- lib/omf-web/widget/UNUSED/code/code_widget.rb
#code_type ⇒ Object
Return the language the code is written in
59 60 61 62 63 64 65 66 67 68 |
# File 'lib/omf-web/widget/UNUSED/code/code_widget.rb', line 59 def code_type() path = @opts[:file] if path.end_with? '.rb' :ruby elsif path.end_with? '.xml' :xml else :text end end |