Class: Silhouette::MethodFinder::ClassPosition
- Inherits:
-
Object
- Object
- Silhouette::MethodFinder::ClassPosition
- Defined in:
- lib/silhouette/finder.rb
Instance Attribute Summary collapse
-
#first_line ⇒ Object
Returns the value of attribute first_line.
-
#last_line ⇒ Object
Returns the value of attribute last_line.
-
#misses ⇒ Object
Returns the value of attribute misses.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ ClassPosition
constructor
A new instance of ClassPosition.
- #total ⇒ Object
Constructor Details
#initialize(name) ⇒ ClassPosition
Returns a new instance of ClassPosition.
26 27 28 29 |
# File 'lib/silhouette/finder.rb', line 26 def initialize(name) @name = name @misses = 0 end |
Instance Attribute Details
#first_line ⇒ Object
Returns the value of attribute first_line.
35 36 37 |
# File 'lib/silhouette/finder.rb', line 35 def first_line @first_line end |
#last_line ⇒ Object
Returns the value of attribute last_line.
35 36 37 |
# File 'lib/silhouette/finder.rb', line 35 def last_line @last_line end |
#misses ⇒ Object
Returns the value of attribute misses.
35 36 37 |
# File 'lib/silhouette/finder.rb', line 35 def misses @misses end |
#name ⇒ Object
Returns the value of attribute name.
35 36 37 |
# File 'lib/silhouette/finder.rb', line 35 def name @name end |
Instance Method Details
#total ⇒ Object
31 32 33 |
# File 'lib/silhouette/finder.rb', line 31 def total @last_line - @first_line end |