Method: Syntax::Respond#parse
- Defined in:
- lib/silicon/routing/syntax/respond.rb
#parse ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/silicon/routing/syntax/respond.rb', line 5 def parse if elements.length > 0 elements[0].elements[1].elements.each do |element| if element.is_a? View @view = element.parse end if element.is_a? HttpStatus @http_status = element.parse end end end self end |