Class: DashOverlord::UseCases::Context::StatusString
- Inherits:
-
String
- Object
- String
- DashOverlord::UseCases::Context::StatusString
- Defined in:
- lib/dash_overlord/use_cases/context.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/dash_overlord/use_cases/context.rb', line 48 def method_missing(method, *args, &block) last_char = method[-1] method_name = method[0...-1] if last_char == '!' replace(method_name) elsif last_char == '?' self == method_name else super end end |