Class: X11Requirement Private

Inherits:
Requirement show all
Includes:
Comparable
Defined in:
Library/Homebrew/requirements/x11_requirement.rb,
Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb

Overview

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.

A requirement on X11.

Constant Summary

Constants included from Dependable

Dependable::RESERVED_TAGS

Instance Attribute Summary

Attributes inherited from Requirement

#cask, #download, #name, #tags

Instance Method Summary collapse

Methods inherited from Requirement

#==, #display_s, env, #env, #env_proc, expand, #fatal?, #hash, #initialize, #mktemp, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy

Methods included from BuildEnvironment::DSL

#env

Methods included from Dependable

#build?, #option_tags, #optional?, #options, #prune_from_option?, #prune_if_build_and_not_dependent?, #recommended?, #required?, #test?

Constructor Details

This class inherits a constructor from Requirement

Instance Method Details

#<=>(other) ⇒ 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.


45
46
47
48
49
# File 'Library/Homebrew/requirements/x11_requirement.rb', line 45

def <=>(other)
  return unless other.is_a? X11Requirement

  0
end

#inspectObject

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.


51
52
53
# File 'Library/Homebrew/requirements/x11_requirement.rb', line 51

def inspect
  "#<#{self.class.name}: #{tags.inspect}>"
end

#messageObject

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.


40
41
42
43
# File 'Library/Homebrew/requirements/x11_requirement.rb', line 40

def message
  "X11 is required to install this formula, either Xorg #{min_version} or " \
  "xdpyinfo #{min_xdpyinfo_version}, or newer. #{super}"
end

#min_versionObject

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.


18
19
20
# File 'Library/Homebrew/requirements/x11_requirement.rb', line 18

def min_version
  "1.12.2"
end

#min_xdpyinfo_versionObject

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.


22
23
24
# File 'Library/Homebrew/requirements/x11_requirement.rb', line 22

def min_xdpyinfo_version
  "1.3.0"
end