class Cucumber::Core::Ast::ExamplesTable::Row
def ==(other)
def ==(other) return false unless other.class == self.class other.number == number && other.location == location && other.data == data end
def [](parameter_name)
def [](parameter_name) @data[parameter_name] end
def description_for_visitors
def description_for_visitors :examples_table_row end
def expand(string)
def expand(string) result = string.dup @data.each do |key, value| result.gsub!("<#{key}>", value.to_s) end result end
def initialize(data, number, location, language, comments)
def initialize(data, number, location, language, comments) raise ArgumentError, data.to_s unless data.is_a?(Hash) @data = data @number = number @location = location @language = language @comments = comments end
def inspect
def inspect "#<#{self.class}: #{@data.inspect} (#{location})>" end
def values
def values @data.values end