Method: YARD::OpenStruct#method_missing

Defined in:
lib/yard/open_struct.rb

#method_missing(name, *args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/yard/open_struct.rb', line 10

def method_missing(name, *args)
  if name.to_s.end_with?('=')
    varname = name.to_s[0..-2].to_sym
    __cache_lookup__(varname)
    send(name, args.first)
  else
    __cache_lookup__(name)
    send(name)
  end
end