Class: Penchant::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/penchant/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Env

Returns a new instance of Env.



5
6
7
# File 'lib/penchant/env.rb', line 5

def initialize(name)
  @name = name.to_s
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/penchant/env.rb', line 3

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/penchant/env.rb', line 9

def ==(other)
  @name == other.name
end

#to_sObject



13
14
15
# File 'lib/penchant/env.rb', line 13

def to_s
  "@#{name}"
end