Class: SimplyGenius::Atmos::Plugins::OutputFilter
- Inherits:
-
Object
- Object
- SimplyGenius::Atmos::Plugins::OutputFilter
- Includes:
- GemLogger::LoggerSupport, UI
- Defined in:
- lib/simplygenius/atmos/plugins/output_filter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #close ⇒ Object
- #filter(data, flushing: false) ⇒ Object
-
#initialize(context) ⇒ OutputFilter
constructor
A new instance of OutputFilter.
Methods included from UI
#agree, #ask, #choose, color_enabled, color_enabled=, #display, #error, #notify, #say, #warn
Constructor Details
#initialize(context) ⇒ OutputFilter
Returns a new instance of OutputFilter.
14 15 16 |
# File 'lib/simplygenius/atmos/plugins/output_filter.rb', line 14 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
12 13 14 |
# File 'lib/simplygenius/atmos/plugins/output_filter.rb', line 12 def context @context end |
Instance Method Details
#close ⇒ Object
22 23 |
# File 'lib/simplygenius/atmos/plugins/output_filter.rb', line 22 def close end |
#filter(data, flushing: false) ⇒ Object
18 19 20 |
# File 'lib/simplygenius/atmos/plugins/output_filter.rb', line 18 def filter(data, flushing: false) raise "not implemented" end |