Module: SubstAttr::Attribute
- Defined in:
- lib/subst_attr/attribute.rb
Class Method Summary collapse
Class Method Details
.define(target_class, attr_name, interface = nil, record = nil) ⇒ Object
3 4 5 6 7 |
# File 'lib/subst_attr/attribute.rb', line 3 def self.define(target_class, attr_name, interface=nil, record=nil) ::Attribute::Define.(target_class, attr_name, :accessor) do Substitute.build(interface, record) end end |