Class: Codescout::SourceFile::ObjectMethod
- Inherits:
-
Object
- Object
- Codescout::SourceFile::ObjectMethod
- Defined in:
- lib/codescout/source_file.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#line_end ⇒ Object
readonly
Returns the value of attribute line_end.
Instance Method Summary collapse
-
#initialize(exp) ⇒ ObjectMethod
constructor
A new instance of ObjectMethod.
Constructor Details
#initialize(exp) ⇒ ObjectMethod
Returns a new instance of ObjectMethod.
9 10 11 12 13 |
# File 'lib/codescout/source_file.rb', line 9 def initialize(exp) @line = exp.begin.line @line_end = exp.end.line @code = exp.source end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/codescout/source_file.rb', line 7 def code @code end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
6 7 8 |
# File 'lib/codescout/source_file.rb', line 6 def line @line end |
#line_end ⇒ Object (readonly)
Returns the value of attribute line_end.
6 7 8 |
# File 'lib/codescout/source_file.rb', line 6 def line_end @line_end end |