class Proc
Public Instance Methods
call_with_rubylog_variables(vars = nil)
click to toggle source
Calls the proc with the given rubylog variables or with the currently available variables.
# File lib/rubylog/mixins/proc.rb, line 25 def call_with_rubylog_variables vars = nil vars ||= @rubylog_variables raise Rubylog::InvalidStateError, "Variables not matched" if not vars # Call the block with the variables substituted Rubylog::DSL::Variables.with_vars vars do return call end end
prove() { || ... }
click to toggle source
# File lib/rubylog/mixins/proc.rb, line 6 def prove yield if call_with_rubylog_variables end
rubylog_clone() { |dup| ... }
click to toggle source
# File lib/rubylog/mixins/proc.rb, line 12 def rubylog_clone yield dup end
rubylog_resolve_function()
click to toggle source
Term methods
# File lib/rubylog/mixins/proc.rb, line 19 def rubylog_resolve_function call_with_rubylog_variables end