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



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def name
  @name
end

#original_pathObject

Returns the value of attribute original_path

Returns:

  • (Object)

    the current value of original_path



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def original_path
  @original_path
end

#parse_errorObject

Returns the value of attribute parse_error

Returns:

  • (Object)

    the current value of parse_error



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def parse_error
  @parse_error
end

#parser_pathObject

Returns the value of attribute parser_path

Returns:

  • (Object)

    the current value of parser_path



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def parser_path
  @parser_path
end

#preview_pathObject

Returns the value of attribute preview_path

Returns:

  • (Object)

    the current value of preview_path



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def preview_path
  @preview_path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



75
76
77
# File 'lib/clacky/utils/file_processor.rb', line 75

def type
  @type
end

Instance Method Details

#parse_failed?Boolean

Returns:

  • (Boolean)


76
77
78
# File 'lib/clacky/utils/file_processor.rb', line 76

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