class SafeDb::Open

The open use case allows us to add (put), subtract (remove), change (update) and list the credential within first a chapter (outer) and then within a verse (inner), of the logged in book.

safe reopen <<chapter>> <<verse>>

If you need to be sure that you are re-opening a chapter and verse that already exists you use the safe reopen command. This command produces an error if it cannot find specified chapter and verse.

Attributes

chapter[W]

The chapter and verse of this book that are to be opened.

verse[W]

The chapter and verse of this book that are to be opened.

Public Instance Methods

execute() click to toggle source
# File lib/controller/navigate/open.rb, line 20
def execute

  @book.set_open_chapter_name( @chapter )
  @book.set_open_verse_name( @verse )
  @book.write()

  # Show the mini dictionary at the opened chapter and verse location
  # More work is needed when for when only the chapter is opened in
  # which case we should show the list of verses and perhaps the count
  # of key value pairs each verse contains.
  Show.new.flow()

end