Class: RubyObjectTemplate
- Inherits:
-
ObjectTemplate
- Object
- ObjectTemplate
- RubyObjectTemplate
- 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
Instance Attribute Summary
Attributes inherited from ObjectTemplate
Instance Method Summary collapse
-
#fill_matchers(k, v) ⇒ Object
:nodoc:.
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 |