Class: Archruby::Ruby::TypeInference::Ruby::MethodDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/archruby/ruby/type_inference/ruby/method_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, method_name, args, method_calls) ⇒ MethodDefinition

Returns a new instance of MethodDefinition.



9
10
11
12
13
14
# File 'lib/archruby/ruby/type_inference/ruby/method_definition.rb', line 9

def initialize(class_name, method_name, args, method_calls)
  @class_name = class_name
  @method_name = method_name
  @args = args
  @method_calls = method_calls
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



7
8
9
# File 'lib/archruby/ruby/type_inference/ruby/method_definition.rb', line 7

def args
  @args
end

#class_nameObject (readonly)

Returns the value of attribute class_name.



7
8
9
# File 'lib/archruby/ruby/type_inference/ruby/method_definition.rb', line 7

def class_name
  @class_name
end

#method_callsObject (readonly)

Returns the value of attribute method_calls.



7
8
9
# File 'lib/archruby/ruby/type_inference/ruby/method_definition.rb', line 7

def method_calls
  @method_calls
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



7
8
9
# File 'lib/archruby/ruby/type_inference/ruby/method_definition.rb', line 7

def method_name
  @method_name
end