Class: ClosedStruct

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/jekyll/core_ext.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object

Raises:

  • (NoMethodError)


49
50
51
# File 'lib/jekyll/core_ext.rb', line 49

def method_missing(symbol, *args)
  raise(NoMethodError, "undefined method `#{symbol}' for #{self}")
end