class Cucumber::Runtime::ForProgrammingLanguages
programming languages to the right place.
It’s a thin class that directs the handul of methods needed by the
This is what a programming language will consider to be a runtime.
def doc_string(string_with_triple_quotes, file=nil, line_offset=0)
Is retured as: " hello\nworld"
"""
world
hello
"""
Returns a regular String for +string_with_triple_quotes+. Example:
def doc_string(string_with_triple_quotes, file=nil, line_offset=0) Ast::DocString.parse(string_with_triple_quotes) end
def initialize(support_code, user_interface)
def initialize(support_code, user_interface) @support_code, @user_interface = support_code, user_interface end
def table(text_or_table, file=nil, line_offset=0)
])
%w{ CUC-101 Peeler 22 }
%w{ INT-100 Taxi 114 },
%w{ account description amount },
table([
or a 2D Array:
})
| CUC-101 | Peeler | 22 |
| INT-100 | Taxi | 114 |
| account | description | amount |
table(%{
be a String:
Returns a Cucumber::Ast::Table for +text_or_table+, which can either
def table(text_or_table, file=nil, line_offset=0) if Array === text_or_table Ast::Table.new(text_or_table) else Ast::Table.parse(text_or_table, file, line_offset) end end