Class: Readapt::Breakpoint
- Inherits:
-
Object
- Object
- Readapt::Breakpoint
- Defined in:
- lib/readapt/breakpoint.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#hit_condition ⇒ Object
readonly
Returns the value of attribute hit_condition.
- #hit_cursor ⇒ Integer
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, line, condition, hit_condition) ⇒ Breakpoint
constructor
A new instance of Breakpoint.
Constructor Details
#initialize(source, line, condition, hit_condition) ⇒ Breakpoint
Returns a new instance of Breakpoint.
9 10 11 12 13 14 |
# File 'lib/readapt/breakpoint.rb', line 9 def initialize source, line, condition, hit_condition @source = source @line = line @condition = condition @hit_condition = hit_condition end |
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
5 6 7 |
# File 'lib/readapt/breakpoint.rb', line 5 def condition @condition end |
#hit_condition ⇒ Object (readonly)
Returns the value of attribute hit_condition.
6 7 8 |
# File 'lib/readapt/breakpoint.rb', line 6 def hit_condition @hit_condition end |
#hit_cursor ⇒ Integer
17 18 19 |
# File 'lib/readapt/breakpoint.rb', line 17 def hit_cursor @hit_cursor ||= 0 end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
4 5 6 |
# File 'lib/readapt/breakpoint.rb', line 4 def line @line end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/readapt/breakpoint.rb', line 3 def source @source end |