struct Teeplate::FileData
- Teeplate::FileData
- Struct
- Value
- Object
Included Modules
Defined in:
lib/file_data.crConstructors
Instance Method Summary
- #absolute_path : String
-
#forces? : Bool
:nodoc:
-
#path : String
Returns a path string relative to a base location.
- #perm : File::Permissions
-
#perm? : UInt16
Returns permission.
- #size : UInt64
-
#size? : UInt64
Returns data size.
-
#write_to(io : IO)
Writes this data stream to a specified IO object.
Instance methods inherited from module Teeplate::AsDataEntry
path : String
path,
perm? : UInt16 | Nil
perm?,
size? : UInt64 | Nil
size?,
write_to(io : IO)
write_to
Constructor Detail
def self.new(absolute_path : String, path : String, size : UInt64 | Nil = nil, perm : File::Permissions | Nil = nil, force : Bool = false)
#
Instance Method Detail
def path : String
#
Description copied from module Teeplate::AsDataEntry
Returns a path string relative to a base location.
def perm? : UInt16
#
Description copied from module Teeplate::AsDataEntry
Returns permission.
If no specific permission, returns nil.
def size? : UInt64
#
Description copied from module Teeplate::AsDataEntry
Returns data size.
If the size can't be determined, returns nil.
def write_to(io : IO)
#
Description copied from module Teeplate::AsDataEntry
Writes this data stream to a specified IO object.