Class: RubyToUML::UMLInfoGenerator::InstanceMethodInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_to_uml/uml_info_generator/info_classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



22
23
24
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 22

def name
  @name
end

#parametersObject

Returns the value of attribute parameters

Returns:

  • (Object)

    the current value of parameters



22
23
24
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 22

def parameters
  @parameters
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 22

def type
  @type
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 23

def to_s
  "#{type} #{name}(#{parameters.join(', ')})"
end