Class: Pragma::Filter::Base
- Inherits:
-
Object
- Object
- Pragma::Filter::Base
- Defined in:
- lib/pragma/filter/base.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(param:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(param:) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/pragma/filter/base.rb', line 8 def initialize(param:) @param = param.to_sym end |
Instance Attribute Details
#param ⇒ Object (readonly)
Returns the value of attribute param.
6 7 8 |
# File 'lib/pragma/filter/base.rb', line 6 def param @param end |
Instance Method Details
#apply ⇒ Object
12 13 14 |
# File 'lib/pragma/filter/base.rb', line 12 def apply(*) fail NotImplementedError end |