Class: Trackler::NullFile

Inherits:
GuaranteedFile show all
Defined in:
lib/trackler/guaranteed_file.rb

Instance Method Summary collapse

Methods inherited from GuaranteedFile

for

Constructor Details

#initializeNullFile

Returns a new instance of NullFile.



70
71
72
# File 'lib/trackler/guaranteed_file.rb', line 70

def initialize(*)
  self
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



50
51
52
# File 'lib/trackler/guaranteed_file.rb', line 50

def method_missing(*)
  # NOOP
end

Instance Method Details

#contentObject



66
67
68
# File 'lib/trackler/guaranteed_file.rb', line 66

def content
  ""
end

#exists?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/trackler/guaranteed_file.rb', line 62

def exists?
  false
end

#inspectObject



58
59
60
# File 'lib/trackler/guaranteed_file.rb', line 58

def inspect
  "<null>"
end

#respond_to?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/trackler/guaranteed_file.rb', line 54

def respond_to?(*)
  true
end