Class: CukePages::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/cukepages/feature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyword, action) ⇒ Step

Returns a new instance of Step.



43
44
45
46
# File 'lib/cukepages/feature.rb', line 43

def initialize(keyword, action)
	@keyword = keyword
	@action = action
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



41
42
43
# File 'lib/cukepages/feature.rb', line 41

def action
  @action
end

#keywordObject (readonly)

Returns the value of attribute keyword.



41
42
43
# File 'lib/cukepages/feature.rb', line 41

def keyword
  @keyword
end

Instance Method Details

#to_sObject



48
49
50
# File 'lib/cukepages/feature.rb', line 48

def to_s
	"#{keyword} #{action}"
end