Class: Class
Overview
module Uttk
Instance Method Summary collapse
- #is_complex_yaml? ⇒ Boolean
- #old_to_yaml ⇒ Object
- #testify(symtbl, &block) ⇒ Object
- #to_yaml(opts = {}) ⇒ Object
Instance Method Details
#is_complex_yaml? ⇒ Boolean
289 290 291 |
# File 'lib/uttk.rb', line 289 def is_complex_yaml? false end |
#old_to_yaml ⇒ Object
285 |
# File 'lib/uttk.rb', line 285 alias_method :old_to_yaml, :to_yaml |
#testify(symtbl, &block) ⇒ Object
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/uttk/loaders/Loader.rb', line 121 def testify ( symtbl, &block ) raise ArgumentError, "nil symtbl" if symtbl.nil? unless self < Uttk::Strategies::Strategy raise ArgumentError, "Need a subclass of Strategy not #{name}" end new do |t| t.symtbl ||= symtbl block[t] if block end end |
#to_yaml(opts = {}) ⇒ Object
286 287 288 |
# File 'lib/uttk.rb', line 286 def to_yaml ( opts={} ) to_s.to_yaml(opts) end |