Sha256: 402e8887ed786def6b0034f73664ce772c815872eab80e4fb9fe6e91166879f7
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require "hara/version" module Hara class << self #decode message, return action and args def decode_msg msg JSON.parse msg end def encode_msg msg msg.to_json end def filter_class @filter_class || DefaultFilter end def filter_class= klass @filter_class = klass end def filter_pool_size= size @filter_pool_size = size end def filter_pool_size @filter_pool_size || 10 end def filter_pool @filter_pool ||= filter_class.pool(size: filter_pool_size) end end end require 'hara/app' require 'hara/filter' require 'hara/default_filter' require 'hara/server'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hara-0.4.0 | lib/hara.rb |