Class: Convict::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/convict/cell.rb

Instance Method Summary collapse

Constructor Details

#initialize(__CONVICT__, __CONVICT_FILE__, __GUARD__) ⇒ Cell

Returns a new instance of Cell.



3
4
5
6
7
8
9
10
# File 'lib/convict/cell.rb', line 3

def initialize(__CONVICT__, __CONVICT_FILE__, __GUARD__)
  $value = lambda do
    __GUARD__.enable do
      instance_eval """#{__CONVICT__}
""", File.realpath(__CONVICT_FILE__), 1
    end
  end.call
end