Class: Washcloth::Filter
- Inherits:
-
Object
- Object
- Washcloth::Filter
- Defined in:
- lib/washcloth.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, filter:) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(name:, filter:) ⇒ Filter
Returns a new instance of Filter.
95 96 97 98 |
# File 'lib/washcloth.rb', line 95 def initialize(name:, filter:) @name = name @filter = filter end |
Instance Attribute Details
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
93 94 95 |
# File 'lib/washcloth.rb', line 93 def filter @filter end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
93 94 95 |
# File 'lib/washcloth.rb', line 93 def name @name end |