Class: Hash

Inherits:
Object show all
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

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_excludeObject

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