module ApiSketch::Model::SharedBlock
Public Class Methods
add(name, block)
click to toggle source
# File lib/api_sketch/model/shared_block.rb, line 5 def add(name, block) @list_hash[name] = block end
find(name)
click to toggle source
# File lib/api_sketch/model/shared_block.rb, line 13 def find(name) @list_hash[name] || raise(::ApiSketch::Error, "Shared block '#{name}' is not defined") end
reset!()
click to toggle source
# File lib/api_sketch/model/shared_block.rb, line 9 def reset! @list_hash = {} end