Module: CRB::World

Includes:
Cucumber::RbSupport::RbDsl
Defined in:
lib/crb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rbObject

Returns the value of attribute rb.



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

def rb
  @rb
end

#supportObject

Returns the value of attribute support.



11
12
13
# File 'lib/crb.rb', line 11

def support
  @support
end

Instance Method Details

#afterObject



30
31
32
# File 'lib/crb.rb', line 30

def after
  fire_hook(:after)
end

#beforeObject



26
27
28
# File 'lib/crb.rb', line 26

def before
  fire_hook(:before)
end

#hooksObject



22
23
24
# File 'lib/crb.rb', line 22

def hooks
  rb.send(:hooks)
end

#stepsObject



18
19
20
# File 'lib/crb.rb', line 18

def steps
  support.step_definitions
end

#to_sObject



14
15
16
# File 'lib/crb.rb', line 14

def to_s
  "CRB:%s" % (steps.size rescue '???')
end