Module: Doing::WWIDEditor

Included in:
WWID
Defined in:
lib/doing/wwid/editor.rb

Overview

Editor methods for WWID class

Instance Method Summary collapse

Instance Method Details

#add_with_editor(**options) ⇒ Object

Raises:

  • (MissingEditor)

#edit_items(items) ⇒ Object

#edit_last(section: 'All', options: {}) ⇒ Object

Edit the last entry

Parameters:

  • section (String) (defaults to: 'All')

    The section, default "All"

#fork_editor(input = '', message: :default) ⇒ Object

Create a process for an editor and wait for the file handle to return

Parameters:

  • input (String) (defaults to: '')

    Text input for editor

Raises:

  • (MissingEditor)

#format_input(input) ⇒ Array

Takes a multi-line string and formats it as an entry

Parameters:

  • input (String)

    The string to parse

Returns:

  • (Array)

    [[String]title, [Note]note]

Raises:

  • (EmptyInput)