class SafeDb::Remove

The remove use case takes away one or more of the safe's core entities.

Attributes

line_id[W]

Public Instance Methods

edit_verse() click to toggle source

Deletion that currently expects an open chapter and verse and always wants to delete only one line (key/value pair).

# File lib/controller/edit/remove.rb, line 18
def edit_verse()

  # @todo refactor to recognise file values using isMap rather than the string prefix
  # @todo refactor the Rename, Show, Read and Write use cases as well as this one.

  @verse.delete( @line_id )
  @verse.delete( "#{Indices::INGESTED_FILE_LINE_NAME_KEY}#{@line_id}" )

end