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


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

def method_missing(*_args, &_block)
  self
end

Instance Method Details

#to_aryObject


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

def to_ary
  ['']
end