Class: Bijou::EncodeTrim

Inherits:
Filter
  • Object
show all
Defined in:
lib/bijou/filters.rb

Overview

Removes

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply(input) ⇒ Object



82
83
84
85
86
87
88
# File 'lib/bijou/filters.rb', line 82

def self.apply(input)
  #s = input.dup
  #s.sub!(/^\s*/, "")
  #s.sub!(/\s*$/, "")
  #s
  input.strip
end

Instance Method Details

#render(input) ⇒ Object



78
79
80
# File 'lib/bijou/filters.rb', line 78

def render(input)
  "Bijou::EncodeTrim.apply(#{input})"
end