Class: Kaiseki::OverrideResult

Inherits:
PackageParser show all
Defined in:
lib/result_override.rb

Instance Attribute Summary collapse

Attributes inherited from BasicParser

#expected

Instance Method Summary collapse

Methods inherited from PackageParser

#predicate?, #to_s

Methods inherited from BasicParser

#to_s

Methods included from Parseable

#&, #action, #and?, #cast, #filter, #list, #merge, #not!, #one_or_more, #optional, #override, #parse, #predicate?, #protect, #repeat, #set, #skip, #tag_error, #tag_result, #to_parseable, #validate, #zero_or_more, #|

Constructor Details

#initialize(expected, options) ⇒ OverrideResult

Returns a new instance of OverrideResult.



5
6
7
8
# File 'lib/result_override.rb', line 5

def initialize expected, options
	super expected
	@options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/result_override.rb', line 3

def options
  @options
end

Instance Method Details

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


10
11
12
# File 'lib/result_override.rb', line 10

def eql? other
	other.is_a?(self.class) and other.expected == @expected and other.options == @options
end