class Tutor::Attributes::Blocks::Alias::Writer
Attributes
aliased_name[R]
block[R]
Public Class Methods
new(aliased_name)
click to toggle source
Calls superclass method
Tutor::Attributes::Block::new
# File lib/tutor/attributes/blocks/alias/writer.rb, line 5 def initialize(aliased_name) self.tap do |block| @aliased_name = aliased_name super() { |object, value| object.send(block.aliased_name, value) } end end