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)


26
27
28
# File 'lib/jekyll/core_ext.rb', line 26

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