Class: Roger::Mockupfile::Context
- Inherits:
-
Object
- Object
- Roger::Mockupfile::Context
- 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
- #binding ⇒ Object
-
#initialize(mockupfile) ⇒ Context
constructor
A new instance of Context.
- #mockup ⇒ Object
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
#binding ⇒ Object
15 16 17 |
# File 'lib/roger/mockupfile.rb', line 15 def binding ::Kernel.binding end |
#mockup ⇒ Object
11 12 13 |
# File 'lib/roger/mockupfile.rb', line 11 def mockup @_mockupfile end |