Class: Dry::Schema::Macros::Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/mcp/tool.rb

Overview

Add description method to Hash macro

Instance Method Summary collapse

Instance Method Details

#description(text) ⇒ Object



62
63
64
65
66
# File 'lib/mcp/tool.rb', line 62

def description(text)
  key_name = name.to_sym
  schema_dsl.meta(key_name, :description, text)
  self
end