Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/string_builder.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
122 123 124 125 126 127 128 |
# File 'lib/string_builder.rb', line 122 def method_missing(name, *) if name.start_with?("to_") super else InnerStringBuilder.new.call(to_s).send(name, *) end end |