class ActiveValidation::Decorator
Public Class Methods
const_missing(name)
click to toggle source
# File lib/active_validation/decorator.rb, line 23 def self.const_missing(name) ::Object.const_get(name) end
new(component)
click to toggle source
# File lib/active_validation/decorator.rb, line 7 def initialize(component) @component = component end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/active_validation/decorator.rb, line 11 def method_missing(name, *args, &block) # rubocop:disable Style/MethodMissingSuper @component.send(name, *args, &block) end
respond_to_missing?(name, include_private = false)
click to toggle source
Calls superclass method
# File lib/active_validation/decorator.rb, line 15 def respond_to_missing?(name, include_private = false) @component.respond_to?(name, true) || super end
send(symbol, *args, &block)
click to toggle source
# File lib/active_validation/decorator.rb, line 19 def send(symbol, *args, &block) __send__(symbol, *args, &block) end