Module: BangNest

Includes:
BangNestedCaller
Included in:
CommonRenderer, Tgui::BackendGui, Tgui::Theme, Tgui::ThemeComponent, Tgui::Window, WidgetLike
Defined in:
lib/white_gold/convention/bang_nest.rb

Instance Method Summary collapse

Methods included from BangNestedCaller

#bang_method_missing, #bang_object_stack, #bang_respond_to?, #self!, #upon!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *a, **na, &b) ⇒ Object



10
11
12
13
14
15
# File 'lib/white_gold/convention/bang_nest.rb', line 10

def method_missing name, *a, **na, &b
  if name.end_with? "!"
    bang_method_missing name, *a, **na, &b
  else super
  end
end

Instance Method Details

#respond_to?(name) ⇒ Boolean

Returns:



6
7
8
# File 'lib/white_gold/convention/bang_nest.rb', line 6

def respond_to? name
  super || bang_respond_to?(name)
end