class Material::Base
Public Class Methods
for(object)
click to toggle source
# File lib/material/base.rb, line 21 def for(object) for_class(object)&.new(object) end
for_class(object)
click to toggle source
# File lib/material/base.rb, line 25 def for_class(object) object.try(:conjugate!, self) end
Public Instance Methods
to_model()
click to toggle source
# File lib/material/base.rb, line 36 def to_model self end
to_source_model()
click to toggle source
# File lib/material/base.rb, line 32 def to_source_model source.to_model end