Class: FactoryFaster::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_faster/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line_number, skip = false) ⇒ Target

Returns a new instance of Target.


6
7
8
9
10
# File 'lib/factory_faster/target.rb', line 6

def initialize(line_number, skip=false)
  @line_number = line_number
  @passed = false
  @skip = skip
end

Instance Attribute Details

#line_numberObject

Returns the value of attribute line_number


4
5
6
# File 'lib/factory_faster/target.rb', line 4

def line_number
  @line_number
end

#passedObject

Returns the value of attribute passed


4
5
6
# File 'lib/factory_faster/target.rb', line 4

def passed
  @passed
end

#skipObject

Returns the value of attribute skip


4
5
6
# File 'lib/factory_faster/target.rb', line 4

def skip
  @skip
end

Instance Method Details

#passed?Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/factory_faster/target.rb', line 16

def passed?
  passed
end

#skip?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/factory_faster/target.rb', line 12

def skip?
  skip
end