Sha256: 1eb59e30ab08858c3adfd4afb52fdddced6b8504a722aebd2120cc7f9724975f

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

## Send Message Plugin -- Soutaro Matsumoto
##
## it invoke ruby method
##
## -module: send_msg
##  config:
##    method: to_s
##    params: 16
##

def send_msg(config, data)
  method = config['method'] || nil
  params = config['params'] || []
  
  data.collect {|x|
    method ? x.send(method, *params) : x
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yapra-0.2.2 legacy_plugins/send_msg.rb
yapra-0.2.0 legacy_plugins/send_msg.rb
yapra-0.1.3 legacy_plugins/send_msg.rb
yapra-0.1.1 legacy_plugins/send_msg.rb
yapra-0.1.0 legacy_plugins/send_msg.rb
yapra-0.1.2 legacy_plugins/send_msg.rb