class Mumukit::Directives::Directive

Attributes

comment_type[W]

Public Instance Methods

comment_regexp() click to toggle source
# File lib/mumukit/directives/directive.rb, line 4
def comment_regexp
  /#{comment_type.open_comment}#{regexp}#{comment_type.close_comment}/
end
comment_type() click to toggle source
# File lib/mumukit/directives/directive.rb, line 8
def comment_type
  @comment_type ||= Mumukit::Directives::CommentType::Cpp
end