Module: TryChain

Defined in:
lib/try_chain.rb,
lib/try_chain/version.rb

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.proxy_try_chain(object, *chain) ⇒ Object Also known as: call, proxied_try_chain



6
7
8
9
10
# File 'lib/try_chain.rb', line 6

def self.proxy_try_chain(object, *chain)
  object.extend(::TryChain::InstanceMethods)

  return object.try_chain(chain)
end

.proxy_try_chain!(object, *chain) ⇒ Object Also known as: call!, proxied_try_chain!



12
13
14
15
16
# File 'lib/try_chain.rb', line 12

def self.proxy_try_chain!(object, *chain)
  object.extend(::TryChain::InstanceMethods)

  return object.try_chain!(chain)
end