Class: Poper::Rule::Rule
- Inherits:
-
Object
- Object
- Poper::Rule::Rule
- Defined in:
- lib/poper/rule/rule.rb
Direct Known Subclasses
Capitalization, CharacterLimit, Generic, SingleWord, SummaryCharacterLimit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config = Config.new) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(config = Config.new) ⇒ Rule
Returns a new instance of Rule.
14 15 16 |
# File 'lib/poper/rule/rule.rb', line 14 def initialize(config = Config.new) @config = config end |
Class Method Details
.all ⇒ Object
6 7 8 |
# File 'lib/poper/rule/rule.rb', line 6 def self.all @all.clone end |
.inherited(subclass) ⇒ Object
10 11 12 |
# File 'lib/poper/rule/rule.rb', line 10 def self.inherited(subclass) @all << subclass end |