Class: Middleman::SourceFile
- Inherits:
-
Struct
- Object
- Struct
- Middleman::SourceFile
- Defined in:
- lib/middleman-core/sources.rb
Overview
The standard "record" that contains information about a file on disk.
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#full_path ⇒ Object
Returns the value of attribute full_path.
-
#relative_path ⇒ Object
Returns the value of attribute relative_path.
-
#types ⇒ Object
Returns the value of attribute types.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory
6 7 8 |
# File 'lib/middleman-core/sources.rb', line 6 def directory @directory end |
#full_path ⇒ Object
Returns the value of attribute full_path
6 7 8 |
# File 'lib/middleman-core/sources.rb', line 6 def full_path @full_path end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
6 7 8 |
# File 'lib/middleman-core/sources.rb', line 6 def relative_path @relative_path end |
#types ⇒ Object
Returns the value of attribute types
6 7 8 |
# File 'lib/middleman-core/sources.rb', line 6 def types @types end |
#version ⇒ Object
Returns the value of attribute version
6 7 8 |
# File 'lib/middleman-core/sources.rb', line 6 def version @version end |
Instance Method Details
#normalized_relative_path ⇒ Object
12 13 14 |
# File 'lib/middleman-core/sources.rb', line 12 def normalized_relative_path @normalized_relative_path ||= ::Middleman::Util.normalize_path relative_path.to_s end |