Class: Readapt::Breakpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/readapt/breakpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conditionObject (readonly)

Returns the value of attribute condition.



5
6
7
# File 'lib/readapt/breakpoint.rb', line 5

def condition
  @condition
end

#hit_conditionObject (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_cursorInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/readapt/breakpoint.rb', line 17

def hit_cursor
  @hit_cursor ||= 0
end

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/readapt/breakpoint.rb', line 4

def line
  @line
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/readapt/breakpoint.rb', line 3

def source
  @source
end