Class: Class
- Defined in:
- lib/ttk/dumpers/Yaml.rb,
lib/ttk/loaders/Loader.rb
Instance Method Summary collapse
Instance Method Details
#old_to_yaml ⇒ Object
20 |
# File 'lib/ttk/dumpers/Yaml.rb', line 20 alias_method :old_to_yaml, :to_yaml |
#testify(opts = nil, &block) ⇒ Object
111 112 113 114 115 116 |
# File 'lib/ttk/loaders/Loader.rb', line 111 def testify ( opts=nil, &block ) unless self < TTK::Strategies::Strategy raise ArgumentError, "Need a subclass of Strategy not #{name}" end new(&block) end |
#to_yaml(opts = {}) ⇒ Object
21 22 23 |
# File 'lib/ttk/dumpers/Yaml.rb', line 21 def to_yaml ( opts={} ) self.to_s.sub(/^TTK::Strategies::/, '').to_yaml(opts) end |