Class: Integer
- Inherits:
-
Object
show all
- Defined in:
- lib/kube/ctl/string_builder.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &_block) ⇒ Object
68
69
70
71
72
|
# File 'lib/kube/ctl/string_builder.rb', line 68
def method_missing(name, *args, &_block)
return super unless name.to_s.match?(/\A[a-z_][a-z0-9_]*\z/)
MethodCallToken.new(self, name, args)
end
|
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
74
75
76
|
# File 'lib/kube/ctl/string_builder.rb', line 74
def respond_to_missing?(name, include_private = false)
name.to_s.match?(/\A[a-z_][a-z0-9_]*\z/) || super
end
|