Class: Brute::PromptTemplate::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/brute/prompt_template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



29
30
31
# File 'lib/brute/prompt_template.rb', line 29

def text
  @text
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


31
# File 'lib/brute/prompt_template.rb', line 31

def empty? = text.to_s.strip.empty?

#to_sObject



30
# File 'lib/brute/prompt_template.rb', line 30

def to_s = text.to_s