Class: Cucumber::Salad::NodeText

Inherits:
String
  • Object
show all
Includes:
InstanceConversions
Defined in:
lib/cucumber/salad/node_text.rb

Instance Method Summary collapse

Methods included from InstanceConversions

included, #to_a, #to_boolean, #to_time

Constructor Details

#initialize(node) ⇒ NodeText

Returns a new instance of NodeText.



6
7
8
# File 'lib/cucumber/salad/node_text.rb', line 6

def initialize(node)
  super node.text.strip
end