Sha256: 2a31d989c0916a5dd18e871ad42ef0a0278fba4f1f3318680345e82c005a4f48
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module FakerMaker # Proxy for mapping attribute names class DefinitionProxy def initialize(factory) @factory = factory end def method_missing(name, *args, &block) # rubocop:disable Style/MethodMissingSuper attribute = FakerMaker::Attribute.new name, block, *args @factory.attach_attribute attribute end def respond_to_missing?(method_name, include_private = false) super end end end
Version data entries
5 entries across 5 versions & 1 rubygems