module Cucumber::Core::Gherkin::Writer::Indentation

def self.level(number)

def self.level(number)
  Module.new do
    define_method :indent do |string, amount=nil|
      amount ||= number
      return string if string.nil? || string.empty?
      (' ' * amount) + string
    end
    define_method :indent_level do
      number
    end
    define_method :prepare_statements do |*statements|
      statements.flatten.compact.map { |s| indent(s) }
    end
  end
end