Module: Gorillib::Model::PositionalFields::ClassMethods

Defined in:
lib/gorillib/model/positional_fields.rb

Instance Method Summary collapse

Instance Method Details

#field(*args) ⇒ Object



27
28
29
30
# File 'lib/gorillib/model/positional_fields.rb', line 27

def field(*args)
  options = args.extract_options!
  super(*args, {position: positionals.count}.merge(options))
end