Module: RevealCK::Render::ContentsOf

Included in:
Scope
Defined in:
lib/reveal-ck/render/contents_of.rb

Overview

Provides mechanism to inline a file

Instance Method Summary collapse

Instance Method Details

#contents_of(path) ⇒ Object



5
6
7
# File 'lib/reveal-ck/render/contents_of.rb', line 5

def contents_of(path)
  File.open(path).read
end