Module: Mumukit::Directives::CommentType
- Defined in:
- lib/mumukit/directives/comment_type.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.parse(string) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/mumukit/directives/comment_type.rb', line 2 def self.parse(string) case string when 'ruby' then Mumukit::Directives::Ruby when 'haskell' then Mumukit::Directives::Haskell else Mumukit::Directives::Cpp end end |