Module: Mumukit::Directives::CommentType::Comment
Instance Method Summary collapse
Instance Method Details
#close_comment ⇒ Object
22 23 24 |
# File 'lib/mumukit/directives/comment_type.rb', line 22 def close_comment Regexp.new Regexp.escape(close) end |
#comment(code) ⇒ Object
14 15 16 |
# File 'lib/mumukit/directives/comment_type.rb', line 14 def comment(code) "#{open}#{code}#{close}" end |
#open_comment ⇒ Object
18 19 20 |
# File 'lib/mumukit/directives/comment_type.rb', line 18 def open_comment Regexp.new Regexp.escape(open) end |