Module: OSPFv2::IE

Included in:
Id, LsType, OpaqueType, Options, SequenceNumber
Defined in:
lib/ie/ie.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/ie/ie.rb', line 3

def method_missing(name, *args, &block)
  if name.to_s =~ /^to_s_(ios|junos)$/
    __send__ :to_s, *args, &block
  else
    p "#{name} is missing...."
    raise
  end
end