Class: Factrey::Ref::Builder

Inherits:
BasicObject
Defined in:
lib/factrey/ref/builder.rb

Overview

An intermediate object for creating Factrey::Refs. See ShorthandMethods#ref.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Ref

Examples:

ref = Factrey::Ref::Builder.new
ref.hoge # same as Factrey::Ref.new(:hoge)

Returns:



14
# File 'lib/factrey/ref/builder.rb', line 14

def method_missing(name) = Ref.new(name)