class Shackleton::Fragment
Public Class Methods
new(route, arguments)
click to toggle source
# File lib/shackleton/fragment.rb, line 7 def initialize(route, arguments) @route = route @arguments = arguments end
Public Instance Methods
arguments()
click to toggle source
# File lib/shackleton/fragment.rb, line 16 def arguments @arguments.slice(*@route.named_fragments) end
call()
click to toggle source
# File lib/shackleton/fragment.rb, line 12 def call @route.expand(arguments) end
query_params()
click to toggle source
# File lib/shackleton/fragment.rb, line 20 def query_params @arguments.except(*@route.named_fragments) end