Class: Mumukit::Directives::Directive
- Inherits:
-
Object
- Object
- Mumukit::Directives::Directive
- Defined in:
- lib/mumukit/directives/directive.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#comment_type ⇒ Object
8 9 10 |
# File 'lib/mumukit/directives/directive.rb', line 8 def comment_type @comment_type ||= Mumukit::Directives::CommentType::Cpp end |
Instance Method Details
#comment_regexp ⇒ Object
4 5 6 |
# File 'lib/mumukit/directives/directive.rb', line 4 def comment_regexp /#{comment_type.open_comment}#{regexp}#{comment_type.close_comment}/ end |