module AdequateSerialization::Attribute
Public Class Methods
from(name, options = {}, &block)
click to toggle source
# File lib/adequate_serialization/attribute.rb, line 131 def self.from(name, options = {}, &block) attribute = if block Synthesized.new(name, &block) else Simple.new(name) end Config.new(attribute, options).to_attribute end