Method: UIView#|
- Defined in:
- lib/sugarcube-pipes/pipes.rb
#|(filter) ⇒ Object
Applies a filter (to a UIImage representation) or coerces to another format
35 36 37 38 39 40 41 |
# File 'lib/sugarcube-pipes/pipes.rb', line 35 def |(filter) if filter == UIImage self.uiimage else raise "The `|` operator is not supported for the #{filter.is_a?(Class) ? filter.name : filter.class.name} class" end end |