Class: BuildEnvironment

Inherits:
Object
  • Object
show all
Defined in:
Library/Homebrew/build_environment.rb

Defined Under Namespace

Modules: DSL

Instance Method Summary collapse

Constructor Details

#initialize(*settings) ⇒ BuildEnvironment

Returns a new instance of BuildEnvironment



4
5
6
# File 'Library/Homebrew/build_environment.rb', line 4

def initialize(*settings)
  @settings = Set.new(*settings)
end

Instance Method Details

#<<(o) ⇒ Object



13
14
15
16
# File 'Library/Homebrew/build_environment.rb', line 13

def <<(o)
  @settings << o
  self
end

#merge(*args) ⇒ Object



8
9
10
11
# File 'Library/Homebrew/build_environment.rb', line 8

def merge(*args)
  @settings.merge(*args)
  self
end

#std?Boolean

Returns:

  • (Boolean)


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

def std?
  @settings.include? :std
end

#userpaths?Boolean

Returns:

  • (Boolean)


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

def userpaths?
  @settings.include? :userpaths
end