Class: Pandoc::IncludeFilter::IncludedFile

Inherits:
Object
  • Object
show all
Defined in:
lib/pandoc/include_filter/included_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IncludedFile

Returns a new instance of IncludedFile.



8
9
10
# File 'lib/pandoc/include_filter/included_file.rb', line 8

def initialize(path)
  @path = path
end

Instance Method Details

#pathnameObject



12
13
14
# File 'lib/pandoc/include_filter/included_file.rb', line 12

def pathname
  Pathname(clean_path(@path)).expand_path
end