Method: Lolita::Builder::Custom#with
- Defined in:
- lib/lolita/builder.rb
#with(*values) ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/lolita/builder.rb', line 72 def with(*values) new_values = self.class.extract_args(*values) if new_values.is_a?(Hash) @build_attributes = new_values else raise ArgumentError, "Can't build with other builder, use build on that builder!" end self end |