Class: Hash
- Defined in:
- lib/fOOrth/library/hash_library.rb,
lib/fOOrth/library/clone_library.rb
Overview
-
Runtime clone library support in Hash.
Instance Method Summary collapse
-
#extract_method_names(search_type = :no_stubs) ⇒ Object
A helper method to extract non-stub method names from a method hash.
-
#full_clone_exclude ⇒ Object
The full clone data member clone exclusion control.
Instance Method Details
#extract_method_names(search_type = :no_stubs) ⇒ Object
A helper method to extract non-stub method names from a method hash.
198 199 200 201 202 |
# File 'lib/fOOrth/library/hash_library.rb', line 198 def extract_method_names(search_type = :no_stubs) search_value = (search_type == :stubs) mkeys = self.keys.select {|key| search_value == self[key].has_tag?(:stub) } mkeys.collect {|key| XfOOrth::SymbolMap.unmap(key) || '?error?' } end |
#full_clone_exclude ⇒ Object
The full clone data member clone exclusion control
66 67 68 69 70 |
# File 'lib/fOOrth/library/clone_library.rb', line 66 def full_clone_exclude vm = Thread.current[:vm] self.foorth_exclude(vm) vm.pop end |