lib/inch/language/elixir/code_object/function_object.rb in inch-0.5.0.rc8 vs lib/inch/language/elixir/code_object/function_object.rb in inch-0.5.0.rc9

- old
+ new

@@ -1,5 +1,7 @@ +require 'inch/language/elixir/code_object/function_parameter_object' + module Inch module Language module Elixir module CodeObject # Proxy class for functions @@ -29,10 +31,10 @@ parameters.find { |p| p.name == name.to_s } end def parameters @parameters ||= self[:parameters].map do |param_attr| - MethodParameterObject.new(param_attr) + FunctionParameterObject.new(param_attr) end end def overridden? self[:overridden?]