Method: SrcML.changed_methods

Defined in:
lib/srcML/srcml.rb

.changed_methods(old, new) ⇒ Array<String>

Calculate the changed methods of the file specified by revision and path

Parameters:

  • old (String)

    the path to the old file

  • new (String)

    the path to the new file

Returns:

  • (Array<String>)

    the changed methods



239
240
241
242
243
# File 'lib/srcML/srcml.rb', line 239

def self.changed_methods(old,new)
  methods_old = methods(old)
  methods_new = methods(new)
  return different_entries(methods_old,methods_new)
end