class Copper::DataTypes::Filename
Public Class Methods
new(value)
click to toggle source
# File lib/copper/data_types/filename.rb, line 5 def initialize(value) if value.is_a?(::String) @value = FilenameClass.new(value) else @value = value end end
Public Instance Methods
expanded_path()
click to toggle source
# File lib/copper/data_types/filename.rb, line 29 def expanded_path @value.expanded_path end
ext()
click to toggle source
# File lib/copper/data_types/filename.rb, line 21 def ext @value.ext end
full_name()
click to toggle source
# File lib/copper/data_types/filename.rb, line 25 def full_name "#{@value.path}/#{@value.name}#{@value.ext}" end
name()
click to toggle source
# File lib/copper/data_types/filename.rb, line 17 def name @value.name end
path()
click to toggle source
# File lib/copper/data_types/filename.rb, line 13 def path @value.path end