Class: MCP::Skill::FileRecord
- Inherits:
-
Struct
- Object
- Struct
- MCP::Skill::FileRecord
- 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
-
#dev ⇒ Object
Returns the value of attribute dev.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#ino ⇒ Object
Returns the value of attribute ino.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
-
#text ⇒ Object
Returns the value of attribute text.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ FileRecord
constructor
A new instance of FileRecord.
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
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def dev @dev end |
#digest ⇒ Object
Returns the value of attribute digest
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def digest @digest end |
#ino ⇒ Object
Returns the value of attribute ino
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def ino @ino end |
#path ⇒ Object
Returns the value of attribute path
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def path @path end |
#size ⇒ Object
Returns the value of attribute size
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def size @size end |
#text ⇒ Object
Returns the value of attribute text
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def text @text end |
#uri ⇒ Object
Returns the value of attribute uri
75 76 77 |
# File 'lib/mcp/skill/directory.rb', line 75 def uri @uri end |