Class: Readable::Rule
- Inherits:
-
Object
- Object
- Readable::Rule
- Defined in:
- lib/readable/rule.rb
Direct Known Subclasses
Constant Summary collapse
- @@rules =
[]
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.register(rule) ⇒ Object
6 7 8 |
# File 'lib/readable/rule.rb', line 6 def register(rule) @@rules << rule end |
.rules ⇒ Object
10 11 12 |
# File 'lib/readable/rule.rb', line 10 def rules @@rules end |
Instance Method Details
#content(doc) ⇒ Object
19 20 21 |
# File 'lib/readable/rule.rb', line 19 def content(doc) nil end |
#title(doc) ⇒ Object
15 16 17 |
# File 'lib/readable/rule.rb', line 15 def title(doc) nil end |