Class: PathMapper::FileNode
- Inherits:
-
Object
- Object
- PathMapper::FileNode
show all
- Includes:
- BaseNode
- Defined in:
- lib/path_mapper.rb
Instance Attribute Summary
Attributes included from BaseNode
#_name, #_path
Instance Method Summary
collapse
Methods included from BaseNode
#_grep_dirs, #_grep_files, #get_file_name, #initialize, #inspect
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
69
70
71
|
# File 'lib/path_mapper.rb', line 69
def method_missing(m, *args, &block)
(@content ||= self.to_s).send(m, *args, &block)
end
|
Instance Method Details
#_grep(reg, recursive = false) ⇒ Object
73
74
75
|
# File 'lib/path_mapper.rb', line 73
def _grep(reg, recursive=false)
[]
end
|
#to_s ⇒ Object
77
78
79
|
# File 'lib/path_mapper.rb', line 77
def to_s
File.read(@_path).strip
end
|