Class: MatchData

Inherits:
Object
  • Object
show all
Defined in:
lib/datte/dattetime.rb

Instance Method Summary collapse

Instance Method Details

#matched?(key) ⇒ Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/datte/dattetime.rb', line 101

def matched?(key)
  self.names.include?(key.to_s)
end