Class: HtmlMockup::Mockupfile::Context
- Inherits:
-
Object
- Object
- HtmlMockup::Mockupfile::Context
- Defined in:
- lib/html_mockup/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.
9 10 11 |
# File 'lib/html_mockup/mockupfile.rb', line 9 def initialize(mockupfile) @_mockupfile = mockupfile end |
Instance Method Details
#binding ⇒ Object
17 18 19 |
# File 'lib/html_mockup/mockupfile.rb', line 17 def binding ::Kernel.binding end |
#mockup ⇒ Object
13 14 15 |
# File 'lib/html_mockup/mockupfile.rb', line 13 def mockup @_mockupfile end |