Class: Arugula::Part
- Inherits:
-
Object
show all
- Defined in:
- lib/arugula/parts.rb
Direct Known Subclasses
AndPart, CapturePart, CharacterClassPart, DotPart, EOLPart, LiteralPart, MetacharacterPart, NotPart, OrPart, PlusPart, QuantifierPart, QuestionPart, RangePart, SOLPart, StarPart
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
4
5
6
|
# File 'lib/arugula/parts.rb', line 4
def self.all
@all ||= []
end
|
.inherited(subclass) ⇒ Object
8
9
10
|
# File 'lib/arugula/parts.rb', line 8
def self.inherited(subclass)
all << subclass
end
|
.type ⇒ Object
12
13
14
|
# File 'lib/arugula/parts.rb', line 12
def self.type
@type ||= name.split('::').last.downcase.chomp('part').to_sym
end
|