Class: Canopus::Project::Tree::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/project/tree.rb,
sig/workspace_services.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#depth ⇒ Object (readonly)

Returns the value of attribute depth

Returns:

  • (Object) —

    the current value of depth



7
8
9
# File 'lib/canopus/project/tree.rb', line 7

def depth
  @depth
end

#directory ⇒ Object (readonly)

Returns the value of attribute directory

Returns:

  • (Object) —

    the current value of directory



7
8
9
# File 'lib/canopus/project/tree.rb', line 7

def directory
  @directory
end

#expanded ⇒ Object (readonly)

Returns the value of attribute expanded

Returns:

  • (Object) —

    the current value of expanded



7
8
9
# File 'lib/canopus/project/tree.rb', line 7

def expanded
  @expanded
end

#name ⇒ Object (readonly)

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



7
8
9
# File 'lib/canopus/project/tree.rb', line 7

def name
  @name
end

#path ⇒ Object (readonly)

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



7
8
9
# File 'lib/canopus/project/tree.rb', line 7

def path
  @path
end

Class Method Details

.new ⇒ instance

Parameters:

  • path (String)
  • name (String)
  • depth (Integer)
  • directory (Boolean)
  • expanded (Boolean)

Returns:

  • (instance)


156
# File 'sig/workspace_services.rbs', line 156

def self.new: (String path, String name, Integer depth, bool directory, bool expanded) -> instance