Class: FutoCase

Inherits:
Object
  • Object
show all
Defined in:
lib/futo-spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h, b_arr) ⇒ FutoCase

Returns a new instance of FutoCase.



68
69
70
71
# File 'lib/futo-spec.rb', line 68

def initialize(h, b_arr)
  @description = h
  @bullet_points = b_arr
end

Instance Attribute Details

#bullet_pointsObject

A test case, with a description and associated bullet points. The description won’t actually execute code. The associated bullet points will be mapped to ruby commands via “Chizus”. Bullets will in sequence until a newline is encountered.



67
68
69
# File 'lib/futo-spec.rb', line 67

def bullet_points
  @bullet_points
end

#descriptionObject

A test case, with a description and associated bullet points. The description won’t actually execute code. The associated bullet points will be mapped to ruby commands via “Chizus”. Bullets will in sequence until a newline is encountered.



67
68
69
# File 'lib/futo-spec.rb', line 67

def description
  @description
end

Instance Method Details

#to_sObject



72
# File 'lib/futo-spec.rb', line 72

def to_s; return @description; end