Method: OMF::Web::Widget::Code::CodeWidget#file_content

Defined in:
lib/omf-web/widget/UNUSED/code/code_widget.rb

#file_contentObject



47
48
49
50
51
52
53
54
55
# File 'lib/omf-web/widget/UNUSED/code/code_widget.rb', line 47

def file_content()
  ## HACK!!!!
  path = @opts[:file]
  if File.readable?(path)
    File.new(path).read
  else
    "Can't find #{path}"
  end
end