Class: FakeFaker::File

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_faker/file.rb

Class Method Summary collapse

Class Method Details

.dir(segment_count = nil, root = nil, directory_separator = nil) ⇒ Object



4
5
6
# File 'lib/fake_faker/file.rb', line 4

def dir(segment_count = nil, root = nil, directory_separator = nil)
  ::Faker::File.dir(segment_count: segment_count, root: root, directory_separator: directory_separator)
end

.file_name(dir = nil, name = nil, ext = nil, directory_separator = nil) ⇒ Object



8
9
10
# File 'lib/fake_faker/file.rb', line 8

def file_name(dir = nil, name = nil, ext = nil, directory_separator = nil)
  ::Faker::File.file_name(dir: dir, name: name, ext: ext, directory_separator: directory_separator)
end