Class: Stevenson::OutputFilter::Base
- Inherits:
-
Object
- Object
- Stevenson::OutputFilter::Base
- Defined in:
- lib/stevenson/output_filter.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(directory, options) ⇒ Base
constructor
A new instance of Base.
- #output ⇒ Object
Constructor Details
#initialize(directory, options) ⇒ Base
Returns a new instance of Base.
23 24 25 |
# File 'lib/stevenson/output_filter.rb', line 23 def initialize(directory, ) @directory, @options = directory, end |
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
9 10 11 |
# File 'lib/stevenson/output_filter.rb', line 9 def directory @directory end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/stevenson/output_filter.rb', line 9 def @options end |
Class Method Details
.included(filter) ⇒ Object
11 12 13 14 15 |
# File 'lib/stevenson/output_filter.rb', line 11 def self.included(filter) filter.extend ClassMethods Stevenson.output_filters[filter.filter_name] = filter end |
Instance Method Details
#output ⇒ Object
27 28 29 |
# File 'lib/stevenson/output_filter.rb', line 27 def output raise NotImplementedError end |