Class: Pathname

Inherits:
Object show all
Defined in:
lib/ttk/dumpers/Yaml.rb,
lib/ttk/symtbl.rb,
lib/ttk/loaders/Loader.rb,
lib/ttk/strategies/Streams/Diff.rb,
lib/ttk/strategies/Streams/Stream.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#compare_stream(stream) ⇒ Object



115
116
117
# File 'lib/ttk/strategies/Streams/Stream.rb', line 115

def compare_stream ( stream )
  read.compare_stream(stream)
end

#old_to_yamlObject



44
# File 'lib/ttk/dumpers/Yaml.rb', line 44

alias_method :old_to_yaml, :to_yaml

#symtbl_gsub(symtbl) ⇒ Object



91
92
93
94
# File 'lib/ttk/symtbl.rb', line 91

def symtbl_gsub ( symtbl )
  res = to_s.symtbl_gsub(symtbl)
  return self.class.new(res) unless res.nil?
end

#testify(aLoader, &block) ⇒ Object



68
69
70
71
72
# File 'lib/ttk/loaders/Loader.rb', line 68

def testify ( aLoader, &block )
  strategy = open { |f| f.testify(aLoader, &block) }
  strategy.symtbl[:pwd] = self.expand_path.dirname
  strategy
end

#to_diff_for_ttk_log(my) ⇒ Object



49
50
51
# File 'lib/ttk/strategies/Streams/Diff.rb', line 49

def to_diff_for_ttk_log ( my )
  open.to_diff_for_ttk_log(my)
end

#to_s_for_ttk_logObject



118
119
120
# File 'lib/ttk/strategies/Streams/Stream.rb', line 118

def to_s_for_ttk_log
  read
end

#to_yaml(opts = {}) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/ttk/dumpers/Yaml.rb', line 45

def to_yaml ( opts={} )
  if opts[:ttk]
    self.to_s.to_yaml(opts)
  else
    old_to_yaml(opts)
  end
end