Class: Object

Inherits:
BasicObject
Defined in:
lib/ttk/symtbl.rb,
lib/ttk/dumpers/Xml.rb,
lib/ttk/logger/to_ttk_log.rb,
lib/ttk/strategies/Streams.rb,
lib/ttk/strategies/Streams/Diff.rb

Overview

module TTK

Instance Method Summary collapse

Instance Method Details

#can_diff?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/ttk/strategies/Streams/Diff.rb', line 31

def can_diff?
  true
end

#compare_stream(stream) ⇒ Object



21
22
23
# File 'lib/ttk/strategies/Streams.rb', line 21

def compare_stream ( stream )
  to_s.compare_stream(stream)
end

#do_symtbl_gsub(symtbl) ⇒ Object



50
51
52
53
# File 'lib/ttk/symtbl.rb', line 50

def do_symtbl_gsub ( symtbl )
  result = symtbl_gsub(symtbl)
  return (result.nil?)? self : result
end

#symtbl_gsub(symtbl) ⇒ Object



46
47
48
# File 'lib/ttk/symtbl.rb', line 46

def symtbl_gsub ( symtbl )
  nil
end

#to_diff_for_ttk_log(my) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/ttk/strategies/Streams/Diff.rb', line 24

def to_diff_for_ttk_log ( my )
  IO.popen("diff -u --label my #{my} --label ref -", 'r+') do |diff|
    diff << to_s
    diff.close_write
    diff.readlines.join
  end
end

#to_s_for_ttk_logObject



24
25
26
# File 'lib/ttk/strategies/Streams.rb', line 24

def to_s_for_ttk_log
  to_s
end

#to_ttk_log(log) ⇒ Object



23
24
25
# File 'lib/ttk/logger/to_ttk_log.rb', line 23

def to_ttk_log ( log )
  log.new_leaf(self)
end

#xmlizeObject



104
105
106
# File 'lib/ttk/dumpers/Xml.rb', line 104

def xmlize
  to_s.xmlize
end

#xmlize_textObject



108
109
110
# File 'lib/ttk/dumpers/Xml.rb', line 108

def xmlize_text
  to_s.xmlize_text
end