Class: RubyObjectTemplate

Inherits:
ObjectTemplate show all
Defined in:
lib/object-template.rb

Overview

Template specified by array or hash of ruby objects. The #== and #=== methods of entry values are used in matching. Entry values may include classes, regexes, ranges, and so on, in addition to single values.

Constant Summary

Constants inherited from ObjectTemplate

ObjectTemplate::VERSION

Instance Attribute Summary

Attributes inherited from ObjectTemplate

#spec

Instance Method Summary collapse

Methods inherited from ObjectTemplate

#===, #initialize, #inspect, #optimize!

Constructor Details

This class inherits a constructor from ObjectTemplate

Instance Method Details

#fill_matchers(k, v) ⇒ Object

:nodoc:



95
96
97
# File 'lib/object-template.rb', line 95

def fill_matchers k, v  # :nodoc:
  @matchers << [k, v]
end