Class: LLM::Command::Pipe Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/llm/command.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#r ⇒ Object

Returns the value of attribute r

Returns:

  • (Object) —

    the current value of r



11
12
13
# File 'lib/llm/command.rb', line 11

def r
  @r
end

#w ⇒ Object

Returns the value of attribute w

Returns:

  • (Object) —

    the current value of w



11
12
13
# File 'lib/llm/command.rb', line 11

def w
  @w
end

Class Method Details

.pair ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/llm/command.rb', line 12

def self.pair
  new(*IO.pipe)
end

Instance Method Details

#close ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/llm/command.rb', line 16

def close
  [r, w].each(&:close)
end