Class: MCP::Skill::FileRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp/skill/directory.rb

Overview

Frozen through, so a custom reader handed read_file's item cannot alter the URI later responses carry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ FileRecord

Returns a new instance of FileRecord.



76
77
78
79
80
# File 'lib/mcp/skill/directory.rb', line 76

def initialize(**kwargs)
  super(**kwargs)
  each { |member| member.freeze if member.is_a?(String) }
  freeze
end

Instance Attribute Details

#dev ⇒ Object

Returns the value of attribute dev

Returns:

  • (Object) —

    the current value of dev



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def dev
  @dev
end

#digest ⇒ Object

Returns the value of attribute digest

Returns:

  • (Object) —

    the current value of digest



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def digest
  @digest
end

#ino ⇒ Object

Returns the value of attribute ino

Returns:

  • (Object) —

    the current value of ino



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def ino
  @ino
end

#path ⇒ Object

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def path
  @path
end

#size ⇒ Object

Returns the value of attribute size

Returns:

  • (Object) —

    the current value of size



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def size
  @size
end

#text ⇒ Object

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def text
  @text
end

#uri ⇒ Object

Returns the value of attribute uri

Returns:

  • (Object) —

    the current value of uri



75
76
77
# File 'lib/mcp/skill/directory.rb', line 75

def uri
  @uri
end