Method: Rundoc::CodeCommand::RundocCommand::Require#initialize
- Defined in:
- lib/rundoc/code_command/rundoc/require.rb
#initialize(path) ⇒ Require
Pass in the relative path of another rundoc document in order to run all of it’s commands. Resulting contents will be displayed in current document
8 9 10 11 |
# File 'lib/rundoc/code_command/rundoc/require.rb', line 8 def initialize(path) raise "Path must be relative (i.e. start with `.` or `..`. #{path.inspect} does not" unless path.start_with?(".") @path = Pathname.new(path) end |