ROM::CommandRegistry#try

Parsed documentation:
View on GitHub
Try to execute a command in a block

@yield [command] Passes command to the block

@example

  rom.command(:users).try { create(name: 'Jane') }
  rom.command(:users).try { update(:by_id, 1).set(name: 'Jane Doe') }
  rom.command(:users).try { delete(:by_id, 1) }

  rom.command(:users).try { |command| command.create(name: 'Jane') }
  rom.command(:users).try { |command| command.delete(:by_id, 1) }

@return [Commands::Result]

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.