Class: Conpar::Directive::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/conpar/directive/comment.rb

Overview

Class for a commented line

Constant Summary collapse

SIGNATURE =
/^\:(.*)?$/

Instance Attribute Summary

Attributes inherited from Base

#content, #ilk, #line_number, #line_span, #match_data, #rule, #sub_ilk

Instance Method Summary collapse

Constructor Details

#initialize(content = "", options = {}) ⇒ Comment

Returns a new instance of Comment


7
8
9
10
11
# File 'lib/conpar/directive/comment.rb', line 7

def initialize(content="", options={})
  super
  @ilk = :comment
  @sub_ilk = "comment"
end