class Object
Add the Object#as_a
helper method
Public Instance Methods
as_a(klass)
click to toggle source
# File lib/duck_enforcer.rb, line 42 def as_a(klass) klass.new(self) end
Add the Object#as_a
helper method
# File lib/duck_enforcer.rb, line 42 def as_a(klass) klass.new(self) end