Class: Cucumber::Formatter::LegacyApi::Ast::NullLanguage

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Overview

Null object for HeaderRow language. ExampleTableRow#keyword is never called on them, but this will pass silently if it happens anyway

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



25
26
27
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 25

def method_missing(*args, &block)
  self
end

Instance Method Details

#to_aryObject



29
30
31
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 29

def to_ary
  ['']
end