Class: JumpBack::OptionsParser
- Inherits:
-
Object
- Object
- JumpBack::OptionsParser
- Defined in:
- lib/jump_back/options_parser.rb
Class Method Summary collapse
Class Method Details
.parse(path, options, default) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/jump_back/options_parser.rb', line 5 def self.parse(path, , default) if path.is_a? Hash = path path = default end = { offsite: .delete(:offsite) } { redirect_options: , jump_back_options: , path: path } end |