Class: Class

Inherits:
Object show all
Defined in:
lib/uttk.rb,
lib/uttk/loaders/Loader.rb

Overview

module Uttk

Instance Method Summary collapse

Instance Method Details

#is_complex_yaml?Boolean

Returns:

  • (Boolean)


289
290
291
# File 'lib/uttk.rb', line 289

def is_complex_yaml?
  false
end

#old_to_yamlObject



285
# File 'lib/uttk.rb', line 285

alias_method :old_to_yaml, :to_yaml

#testify(symtbl, &block) ⇒ Object

Raises:

  • (ArgumentError)


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