Module: Fix::Helper::LetReaderHelper

Included in:
LetAccessorHelper, RequirementHelper
Defined in:
lib/fix/helper/let_reader_helper.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/fix/helper/let_reader_helper.rb', line 4

def method_missing name, *args, &block
  if @defs.key? name
    @defs.fetch(name).call
  else
    super
  end
end