Method: ContentPreview::Router::Base#initialize
- Defined in:
- lib/content-preview/router.rb
#initialize(path = File.expand_path('../router/routes.yml', __FILE__)) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/content-preview/router.rb', line 10 def initialize(path = File.('../router/routes.yml', __FILE__)) @routes = YAML.load_file path end |