class Rudash::ChainUtils::ChainWrapper
Attributes
value[R]
Public Class Methods
new(value, ru_)
click to toggle source
# File lib/utils/chain_wrapper.rb, line 6 def initialize(value, ru_) @value = value @ru_ = ru_ end
Public Instance Methods
method_missing(method_name, *args, &_block)
click to toggle source
# File lib/utils/chain_wrapper.rb, line 11 def method_missing(method_name, *args, &_block) result = @ru_.public_send(method_name, @value, *args) self.class.new(result, @ru_) rescue NameError raise NameError, "\"#{method_name}\" doesn't exist in Rudash" end