Class: Ibex::GrammarTests::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/ibex/grammar_tests.rb,
lib/ibex/grammar_tests.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actual ⇒ Object

Returns the value of attribute actual

Returns:

  • (Object) —

    the current value of actual



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def actual
  @actual
end

#error_class ⇒ Object

Returns the value of attribute error_class

Returns:

  • (Object) —

    the current value of error_class



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def error_class
  @error_class
end

#error_message ⇒ Object

Returns the value of attribute error_message

Returns:

  • (Object) —

    the current value of error_message



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def error_message
  @error_message
end

#expectation ⇒ Object

Returns the value of attribute expectation

Returns:

  • (Object) —

    the current value of expectation



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def expectation
  @expectation
end

#location ⇒ Object

Returns the value of attribute location

Returns:

  • (Object) —

    the current value of location



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def location
  @location
end

#production_ids ⇒ Object

Returns the value of attribute production_ids

Returns:

  • (Object) —

    the current value of production_ids



15
16
17
# File 'lib/ibex/grammar_tests.rb', line 15

def production_ids
  @production_ids
end

Instance Method Details

#passed? ⇒ Boolean

Returns:

  • (Boolean)


27
# File 'lib/ibex/grammar_tests.rb', line 27

def passed? = expectation == actual