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.
7 8 9 |
# File 'lib/redis_scanner/formatter.rb', line 7 def initialize() @options = end |
Instance Method Details
#format(patterns) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/redis_scanner/formatter.rb', line 11 def format(patterns) if @options[:format] == "simple" simple patterns else table patterns end end |