Class: Roleback::Any

Inherits:
Object
  • Object
show all
Defined in:
lib/roleback/outcome.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
# File 'lib/roleback/outcome.rb', line 45

def ==(other)
	return true if other.is_a?(Any)
	return false unless other.respond_to?(:name)

	other.name.to_s == name.to_s
end

#match(scope) ⇒ Object



52
53
54
# File 'lib/roleback/outcome.rb', line 52

def match(scope)
	true
end

#nameObject



41
42
43
# File 'lib/roleback/outcome.rb', line 41

def name
	:'*'
end