Class: Capybara::Lightpanda::Binary::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/capybara/lightpanda/binary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



12
13
14
# File 'lib/capybara/lightpanda/binary.rb', line 12

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



12
13
14
# File 'lib/capybara/lightpanda/binary.rb', line 12

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



12
13
14
# File 'lib/capybara/lightpanda/binary.rb', line 12

def stdout
  @stdout
end

Instance Method Details

#exit_codeObject



17
18
19
# File 'lib/capybara/lightpanda/binary.rb', line 17

def exit_code
  status.exitstatus
end

#outputObject



21
22
23
# File 'lib/capybara/lightpanda/binary.rb', line 21

def output
  stdout.empty? ? stderr : stdout
end

#success?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/capybara/lightpanda/binary.rb', line 13

def success?
  status.success?
end