Class: Xumlidot::Types::MethodSignature
- Inherits:
-
Object
- Object
- Xumlidot::Types::MethodSignature
- Defined in:
- lib/xumlidot/types/method_signature.rb
Overview
Value object for a method
we store all the method details here including many which we are not yet using.
Instance Attribute Summary collapse
-
#args ⇒ Object
symbol.
-
#file ⇒ Object
symbol.
-
#line_max ⇒ Object
symbol.
-
#line_number ⇒ Object
symbol.
-
#name ⇒ Object
symbol.
-
#superclass_method ⇒ Object
symbol.
-
#visibility ⇒ Object
symbol.
Instance Method Summary collapse
-
#initialize ⇒ MethodSignature
constructor
A new instance of MethodSignature.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ MethodSignature
Returns a new instance of MethodSignature.
27 28 29 |
# File 'lib/xumlidot/types/method_signature.rb', line 27 def initialize @superclass_method = false end |
Instance Attribute Details
#args ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def args @args end |
#file ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def file @file end |
#line_max ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def line_max @line_max end |
#line_number ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def line_number @line_number end |
#name ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def name @name end |
#superclass_method ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def superclass_method @superclass_method end |
#visibility ⇒ Object
symbol
19 20 21 |
# File 'lib/xumlidot/types/method_signature.rb', line 19 def visibility @visibility end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/xumlidot/types/method_signature.rb', line 31 def to_s "#{klass} #{visibility_symbol} #{clean_name}(#{@args})" end |