What is the meaning of the word "ingeniously"?

Definitions:

  1. in an ingenious manner copy to clipboard adverb
    • The farmer ingeniously separated the rams from the ewes by leading them by the horns. copy to clipboard