Class: Roger::Mockupfile::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/roger/mockupfile.rb

Overview

This is the context for the mockupfile evaluation. It should be empty except for the #mockup method.

Instance Method Summary collapse

Constructor Details

#initialize(mockupfile) ⇒ Context

Returns a new instance of Context.



7
8
9
# File 'lib/roger/mockupfile.rb', line 7

def initialize(mockupfile)
  @_mockupfile = mockupfile
end

Instance Method Details

#bindingObject



15
16
17
# File 'lib/roger/mockupfile.rb', line 15

def binding
  ::Kernel.binding
end

#mockupObject



11
12
13
# File 'lib/roger/mockupfile.rb', line 11

def mockup
  @_mockupfile
end