Class: Me::Store::Environment

Inherits:
Struct
  • Object
show all
Defined in:
lib/me/store.rb

Direct Known Subclasses

NullEnvironment

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



5
6
7
# File 'lib/me/store.rb', line 5

def value
  @value
end

Class Method Details

.wrap(env) ⇒ Object



6
7
8
9
# File 'lib/me/store.rb', line 6

def self.wrap(env)
  return env if env.is_a?(self)
  new(env)
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/me/store.rb', line 11

def to_s
  "_#{value}"
end