Class: Bake::BuildPattern

Inherits:
Object
  • Object
show all
Defined in:
lib/bakery/buildPattern.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proj, conf, args, coll_p) ⇒ BuildPattern

Returns a new instance of BuildPattern.



5
6
7
8
9
10
# File 'lib/bakery/buildPattern.rb', line 5

def initialize(proj, conf, args, coll_p)
  @proj = proj
  @conf = conf
  @args = args
  @coll_p = coll_p
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



4
5
6
# File 'lib/bakery/buildPattern.rb', line 4

def args
  @args
end

#coll_pObject (readonly)

Returns the value of attribute coll_p.



4
5
6
# File 'lib/bakery/buildPattern.rb', line 4

def coll_p
  @coll_p
end

#confObject (readonly)

Returns the value of attribute conf.



4
5
6
# File 'lib/bakery/buildPattern.rb', line 4

def conf
  @conf
end

#projObject (readonly)

Returns the value of attribute proj.



4
5
6
# File 'lib/bakery/buildPattern.rb', line 4

def proj
  @proj
end

Instance Method Details

#==(comparee) ⇒ Object



20
21
22
# File 'lib/bakery/buildPattern.rb', line 20

def ==(comparee)
  self.getId == comparee.getId
end

#eql?(comparee) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/bakery/buildPattern.rb', line 17

def eql?(comparee)
  self == comparee
end

#getIdObject



11
12
13
# File 'lib/bakery/buildPattern.rb', line 11

def getId
  proj + "*******" + conf
end

#hashObject



14
15
16
# File 'lib/bakery/buildPattern.rb', line 14

def hash
  getId.hash
end