Sha256: 3da371fe8e79b4f4900b9b422d6e6e32dae2a017814a7746f7dd12af7f45e20f

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

module Stack
  module Filters
    module Standard
      include Stack::Filters::Register
      
      def hello_world(input)
        "Hello World!"
      end
      
      def length(input)
        input.length
      end
      
      def escape(input)
        CGI::escape(input)
      end
      
      def escape_html(input)
        CGI::escapeHTML(input)
      end
      
      def escape_xml(input)
        CGI::escapeHTML(input)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stack-0.0.9 lib/stack/filters/standard.rb
stack-0.0.8 lib/stack/filters/standard.rb
stack-0.0.7 lib/stack/filters/standard.rb
stack-0.0.6 lib/stack/filters/standard.rb