Class: Peictt::Parser::JSON
Constant Summary collapse
- NOT_ALLOWED =
[:@env, :@request, :@response, :@action].freeze
Instance Method Summary collapse
-
#initialize(file) ⇒ JSON
constructor
A new instance of JSON.
- #render(klass = nil, locals = {}) ⇒ Object
Constructor Details
#initialize(file) ⇒ JSON
Returns a new instance of JSON.
6 7 8 |
# File 'lib/peictt/parser/json.rb', line 6 def initialize(file) @file = file end |
Instance Method Details
#render(klass = nil, locals = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/peictt/parser/json.rb', line 10 def render(klass = nil, locals = {}) parse_instance_variables(klass) parse_local_variables(locals) parse_missing_variables minify end |