class ChoresKit::DefinitionProxy

Attributes

chore[R]

Public Class Methods

new(name) click to toggle source
# File lib/chores_kit/definition_proxy.rb, line 5
def initialize(name)
  @chore = Chore.new(name)
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source

rubocop:disable Style/MethodMissing

# File lib/chores_kit/definition_proxy.rb, line 10
def method_missing(name, *args, &block)
  args = {} if args.empty?

  if block_given?
    @chore.send(name, args, &block)
  else
    @chore.send(name, *args)
  end
end