Class: Turnip::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/turnip/builder.rb

Class Method Summary collapse

Class Method Details

.build(feature_file) ⇒ Object



6
7
8
9
10
11
# File 'lib/turnip/builder.rb', line 6

def self.build(feature_file)
  feature_file = CukeModeler::FeatureFile.new(feature_file)

  return nil unless feature_file.feature
  Node::Feature.new(feature_file.feature)
end