Method: Heist::Runtime::Macro::Matches#has?

Defined in:
lib/runtime/callable/macro/matches.rb

#has?(name) ⇒ Boolean

Returns true iff the receiver has a pattern variable named name.

Returns:

  • (Boolean)


105
106
107
# File 'lib/runtime/callable/macro/matches.rb', line 105

def has?(name)
  @data.has_key?(name.to_s)
end