Class: MidasTouch::Filter
- Inherits:
-
Object
- Object
- MidasTouch::Filter
- Defined in:
- lib/midas-touch/filter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #call(value) ⇒ Object
-
#initialize(name) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(name) ⇒ Filter
Returns a new instance of Filter.
7 8 9 |
# File 'lib/midas-touch/filter.rb', line 7 def initialize(name) self.name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/midas-touch/filter.rb', line 4 def name @name end |
Instance Method Details
#call(value) ⇒ Object
11 12 13 |
# File 'lib/midas-touch/filter.rb', line 11 def call(value) value end |