Class: Washcloth::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/washcloth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filterObject (readonly)

Returns the value of attribute filter.



93
94
95
# File 'lib/washcloth.rb', line 93

def filter
  @filter
end

#nameObject (readonly)

Returns the value of attribute name.



93
94
95
# File 'lib/washcloth.rb', line 93

def name
  @name
end