Class: Database::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/database/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



2
3
4
# File 'lib/database/entry.rb', line 2

def mode
  @mode
end

#oidObject

Returns the value of attribute oid

Returns:

  • (Object)

    the current value of oid



2
3
4
# File 'lib/database/entry.rb', line 2

def oid
  @oid
end

Instance Method Details

#tree?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/database/entry.rb', line 3

def tree?
  mode == Tree::TREE_MODE
end