Class: Conpar::Directive::AccessList::Base

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

Overview

Base class for all AccessList classes

Direct Known Subclasses

EtherType, Extended, Remark, Standard, UnknownType, WebType

Constant Summary collapse

SIGNATURE =
/^(access-list)\b/
NAME =

any non-line-breaking whitespace

/[^\s\t]+/

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 = {}) ⇒ Base


10
11
12
13
14
# File 'lib/conpar/directive/access_list/base.rb', line 10

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

Instance Method Details

#to_sObject

initialize


16
17
18
# File 'lib/conpar/directive/access_list/base.rb', line 16

def to_s
  @content
end