class Dynamic
dynamic target
Public Class Methods
new(func_name, args)
click to toggle source
# File lib/reggae.rb, line 172 def initialize(func_name, args) @func_name = func_name @args = args end
Public Instance Methods
jsonify()
click to toggle source
# File lib/reggae.rb, line 177 def jsonify hash = { type: 'dynamic', func: @func_name } @args.each do |k, v| if v.respond_to? :jsonify hash[k] = v.jsonify else hash[k] = v end end hash end