Class: ZombieScout::Method

Inherits:
Struct
  • Object
show all
Defined in:
lib/zombie_scout/method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_nameObject

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



2
3
4
# File 'lib/zombie_scout/method.rb', line 2

def class_name
  @class_name
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



2
3
4
# File 'lib/zombie_scout/method.rb', line 2

def file_path
  @file_path
end

#line_numberObject

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



2
3
4
# File 'lib/zombie_scout/method.rb', line 2

def line_number
  @line_number
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/zombie_scout/method.rb', line 2

def name
  @name
end

Instance Method Details

#full_nameObject



3
4
5
# File 'lib/zombie_scout/method.rb', line 3

def full_name
  [class_name, '#', name].join('')
end

#locationObject



7
8
9
# File 'lib/zombie_scout/method.rb', line 7

def location
  [file_path, line_number].join(':')
end