Exception: Reck::Response

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/reck/application.rb

Direct Known Subclasses

Created, Forbidden, NotFound, Ok

Constant Summary collapse

NOT_BLANK =
Regexp.new('\S').freeze

Instance Method Summary collapse

Instance Method Details

#head?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/reck/application.rb', line 11

def head?
  message == self.class.name || message !~ NOT_BLANK
end

#renderObject



15
16
17
18
# File 'lib/reck/application.rb', line 15

def render
  erb = ERB.new(message)
  erb.result
end