Method: Runo::File#body

Defined in:
lib/scalar/file.rb

#bodyObject



37
38
39
40
41
42
43
44
# File 'lib/scalar/file.rb', line 37

def body
  raise Runo::Error::Forbidden unless permit? :read

  if ps = my[:persistent_sd]
    @body ||= ps.storage.val my[:persistent_name]
  end
  @body
end