Class: HtmlMockup::Mockupfile::Context

Inherits:
Object
  • Object
show all
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

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

#bindingObject



17
18
19
# File 'lib/html_mockup/mockupfile.rb', line 17

def binding
  ::Kernel.binding
end

#mockupObject



13
14
15
# File 'lib/html_mockup/mockupfile.rb', line 13

def mockup
  @_mockupfile
end