Class: SixthSense::Model::CodeUnit

Inherits:
Struct
  • Object
show all
Defined in:
lib/sixth_sense/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#constantsObject

Returns the value of attribute constants

Returns:

  • (Object)

    the current value of constants



82
83
84
# File 'lib/sixth_sense/model.rb', line 82

def constants
  @constants
end

#methodsObject

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



82
83
84
# File 'lib/sixth_sense/model.rb', line 82

def methods
  @methods
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



82
83
84
# File 'lib/sixth_sense/model.rb', line 82

def path
  @path
end

Instance Method Details

#to_hObject



83
84
85
86
87
88
89
# File 'lib/sixth_sense/model.rb', line 83

def to_h
  {
    path: path,
    constants: constants,
    methods: methods
  }
end