Class: JavaParse::MethodMatch
- Inherits:
-
Object
- Object
- JavaParse::MethodMatch
- Defined in:
- lib/javaparse/method_graber.rb
Instance Attribute Summary collapse
-
#method_text ⇒ Object
readonly
Returns the value of attribute method_text.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
Instance Method Summary collapse
-
#initialize(signature, method_text) ⇒ MethodMatch
constructor
A new instance of MethodMatch.
- #inner_lines_count ⇒ Object
Constructor Details
#initialize(signature, method_text) ⇒ MethodMatch
Returns a new instance of MethodMatch.
7 8 9 10 |
# File 'lib/javaparse/method_graber.rb', line 7 def initialize(signature, method_text) @signature = signature @method_text = method_text end |
Instance Attribute Details
#method_text ⇒ Object (readonly)
Returns the value of attribute method_text.
5 6 7 |
# File 'lib/javaparse/method_graber.rb', line 5 def method_text @method_text end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
5 6 7 |
# File 'lib/javaparse/method_graber.rb', line 5 def signature @signature end |
Instance Method Details
#inner_lines_count ⇒ Object
12 13 14 |
# File 'lib/javaparse/method_graber.rb', line 12 def inner_lines_count @method_text.lines.inject(-2){|sum| sum + 1} end |