class PatternMatching::Configuration

Available configuration options are:

Attributes

binding_helper[RW]
call_helper[RW]
send_helper[RW]
use_binding_helper[RW]
use_proc_helpers[RW]

Public Class Methods

default() click to toggle source
# File lib/pattern_matching/configuration.rb, line 21
def self.default
  new(true, true, :S, :C, :B)
end
new(use_proc_helpers, use_binding_helper, send_helper, call_helper, binding_helper) click to toggle source
# File lib/pattern_matching/configuration.rb, line 31
def initialize(use_proc_helpers, use_binding_helper, send_helper, call_helper, binding_helper)
  @use_proc_helpers   = use_proc_helpers
  @use_binding_helper = use_binding_helper
  @send_helper        = send_helper
  @call_helper        = call_helper
  @binding_helper     = binding_helper
end

Public Instance Methods

default_binding_helper?() click to toggle source
# File lib/pattern_matching/configuration.rb, line 45
def default_binding_helper?
  :B == binding_helper
end
default_proc_helpers?() click to toggle source
# File lib/pattern_matching/configuration.rb, line 40
def default_proc_helpers?
  :S == send_helper && :C == call_helper
end