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)


34
35
36
# File 'lib/jekyll/core_ext.rb', line 34

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