class FakerMaker::DefinitionProxy
Proxy for mapping attribute names
Public Class Methods
new(factory)
click to toggle source
# File lib/faker_maker/definition_proxy.rb, line 8 def initialize(factory) @factory = factory end
Public Instance Methods
faker_maker_factory()
click to toggle source
# File lib/faker_maker/definition_proxy.rb, line 12 def faker_maker_factory @factory end
method_missing(name, *args, &block)
click to toggle source
# File lib/faker_maker/definition_proxy.rb, line 16 def method_missing(name, *args, &block) attribute = FakerMaker::Attribute.new name, block, *args @factory.attach_attribute attribute end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/faker_maker/definition_proxy.rb, line 21 def respond_to_missing?(method_name, include_private = false) super end