Class: RubyToUML::UMLInfoGenerator::RelationshipInfo

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

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



16
17
18
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 16

def object
  @object
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



16
17
18
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 16

def subject
  @subject
end

#verbObject

Returns the value of attribute verb

Returns:

  • (Object)

    the current value of verb



16
17
18
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 16

def verb
  @verb
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/ruby_to_uml/uml_info_generator/info_classes.rb', line 17

def to_s
  "#{subject} #{verb} #{object}"
end