class SourceRoute::BlockConfigParser

Attributes

ret_params[RW]

Public Class Methods

new() click to toggle source
# File lib/source_route/config.rb, line 49
def initialize
  @ret_params = {}
end

Public Instance Methods

output_format(data = nil, &block) click to toggle source

override

# File lib/source_route/config.rb, line 84
def output_format(data = nil, &block)
  ret_params[:output_format] = block_given? ? block : data
end
run(match_str = nil, &block) click to toggle source
# File lib/source_route/config.rb, line 53
def run(match_str = nil, &block)
  unless match_str.nil?
    ret_params[:defined_class] = match_str
    ret_params[:method_id] = match_str
  end
  instance_eval(&block) if block_given?
  ParamsConfigParser.run(@ret_params)
end
track_params(value) click to toggle source

Track when the value was passed into method

# File lib/source_route/config.rb, line 76
def track_params(value)
  ret_params[:track_params] = value.object_id
  ret_params[:show_additional_attrs] = :path
  ret_params[:include_local_var] = true
  ret_params[:event] = :call
end