Class: Hanami::View::Rendering::NullLocal

Inherits:
Utils::BasicObject
Defined in:
gems/gems/hanami-view-1.3.1/lib/hanami/view/rendering/null_local.rb

Overview

Null local

See Also:

  • #local

Since:

  • 0.7.0

Method Summary

Methods inherited from Utils::BasicObject

#class, #inspect, #instance_of?, #is_a?, #kind_of?, #object_id, #pretty_print, #respond_to?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0

def method_missing(m, *)
  if m.match(/\?\z/)
    false
  else
    self.class.new("#{ @local }.#{ m }")
  end
end