class Hash
-
Runtime clone library support in
Hash
.
-
library/formatting/hash.rb -
Hash
support for displaying data formatted neatly.
-
Runtime library support for fOOrth constructs.
Public Instance Methods
extract_method_names(search_type = :no_stubs)
click to toggle source
A helper method to extract non-stub method names from a method hash.
# File lib/fOOrth/library/hash_library.rb, line 206 def extract_method_names(search_type = :no_stubs) search_value = (search_type == :stubs) get_all = (search_type == :all) mkeys = self.keys.select {|key| get_all || search_value == self[key].has_tag?(:stub) } mkeys.collect {|key| XfOOrth::SymbolMap.unmap(key) || '?error?' } end
foorth_format_bullets(page_width)
click to toggle source
Convert the array to strings with bullet points.
Returns
-
A string.
# File lib/fOOrth/library/formatting/hash.rb, line 16 def foorth_format_bullets(page_width) return "" if empty? builder = XfOOrth::BulletPoints.new(page_width) self.each do |pair| builder.add(*pair) end builder.render.join("\n").freeze end
full_clone_exclude()
click to toggle source
The full clone data member clone exclusion control
# File lib/fOOrth/library/clone_library.rb, line 66 def full_clone_exclude vm = Thread.current[:vm] self.foorth_exclude(vm) vm.pop end
puts_foorth_bullets(page_width)
click to toggle source
Print out the array as bullet points.
# File lib/fOOrth/library/formatting/hash.rb, line 9 def puts_foorth_bullets(page_width) puts foorth_format_bullets(page_width) end