module Instructor::Arguments
Public Instance Methods
argument(argument, allow_nil: true)
click to toggle source
# File lib/instructor/concerns/arguments.rb, line 30 def argument(argument, allow_nil: true) _arguments[argument] = { allow_nil: allow_nil } define_attribute argument end
inherited(base)
click to toggle source
Calls superclass method
# File lib/instructor/concerns/arguments.rb, line 22 def inherited(base) dup = _arguments.dup base._arguments = dup.each { |k, v| dup[k] = v.dup } super end