Class: MidasTouch::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/midas-touch/filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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