Class: Ncn::CommandParams::Open

Inherits:
Base
  • Object
show all
Defined in:
lib/ncn/command_params/open.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ncn::CommandParams::Base

Instance Method Details

#idsArray{Integer}?

Returns array of note ids or nil if there are none.

Returns:

  • (Array{Integer}, nil)

    array of note ids or nil if there are none



5
6
7
8
# File 'lib/ncn/command_params/open.rb', line 5

def ids
  return unless arguments&.any?
  arguments.map { normalize_note_id(_1) }
end