Class: RedisScanner::Formatter
- Inherits:
-
Object
- Object
- RedisScanner::Formatter
- Defined in:
- lib/redis_scanner/formatter.rb
Instance Method Summary collapse
- #format(patterns) ⇒ Object
-
#initialize(options) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(options) ⇒ Formatter
Returns a new instance of Formatter.
5 6 7 |
# File 'lib/redis_scanner/formatter.rb', line 5 def initialize() = end |
Instance Method Details
#format(patterns) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/redis_scanner/formatter.rb', line 9 def format(patterns) if [:format] == "simple" simple patterns else table patterns end end |