Module: Panda::Router
- Included in:
- Base
- Defined in:
- lib/panda/modules/router.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VAR_PATTERN =
/:\w+/
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/panda/modules/router.rb', line 5 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#replace_pattern_with_self_variables(url) ⇒ Object
56 57 58 |
# File 'lib/panda/modules/router.rb', line 56 def replace_pattern_with_self_variables(url) self.class.create_rest_url(url, attributes) end |