Class: MVCLI::Router::Pattern::Matcher::Variable

Inherits:
Matcher
  • Object
show all
Defined in:
lib/mvcli/router/pattern.rb

Instance Method Summary collapse

Instance Method Details

#bind(input) ⇒ Object



49
50
51
# File 'lib/mvcli/router/pattern.rb', line 49

def bind(input)
  {@name => input}
end

#matches?(input) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/mvcli/router/pattern.rb', line 45

def matches?(input)
  true
end