class Jasonette::Helpers::BlockBuilder
Attributes
builder[R]
Public Class Methods
new(builder)
click to toggle source
# File lib/jasonette/helpers.rb, line 16 def initialize builder @builder = builder end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/jasonette/helpers.rb, line 20 def method_missing name, *args, &block next_builder = builder.public_send name, *args j.encode(next_builder, &block) if ::Kernel.block_given? next_builder end
Private Instance Methods
j()
click to toggle source
# File lib/jasonette/helpers.rb, line 27 def j JasonSingleton.fetch(builder.context) end