class Doing::FluentValue

Attributes

it[R]

Public Class Methods

new(it) click to toggle source
# File lib/doing/fluent_value.rb, line 5
def initialize(it)
  @it = it
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
# File lib/doing/fluent_value.rb, line 9
def method_missing(method, *args, &block)
  result = if it.respond_to?(method)
    it.send(method, *args, &block)
  else
    ::Kernel.send(method, *args.clone.unshift(it), &block)
  end
  FluentValue.new(result)
end