Class: Clacky::Utils::FileProcessor::FileRef

Inherits:
Struct
  • Object
show all
Defined in:
lib/clacky/utils/file_processor.rb

Overview

FileRef: result of process / process_path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def name
  @name
end

#original_pathObject

Returns the value of attribute original_path

Returns:

  • (Object)

    the current value of original_path



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def original_path
  @original_path
end

#parse_errorObject

Returns the value of attribute parse_error

Returns:

  • (Object)

    the current value of parse_error



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def parse_error
  @parse_error
end

#parser_pathObject

Returns the value of attribute parser_path

Returns:

  • (Object)

    the current value of parser_path



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def parser_path
  @parser_path
end

#preview_pathObject

Returns the value of attribute preview_path

Returns:

  • (Object)

    the current value of preview_path



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def preview_path
  @preview_path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



81
82
83
# File 'lib/clacky/utils/file_processor.rb', line 81

def type
  @type
end

Instance Method Details

#parse_failed?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/clacky/utils/file_processor.rb', line 82

def parse_failed?
  preview_path.nil? && !parse_error.nil?
end