Module: Baron::Transferrable

Included in:
Money, Ownable
Defined in:
lib/baron/transferrable.rb

Overview

Transferrable is a type of thing which can be tranferred as part of a Baron::Transaction

Instance Method Summary collapse

Instance Method Details

#owner=(_) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Set the owner of this transferrable

This is designed to be overridden by items which can have owners


24
25
# File 'lib/baron/transferrable.rb', line 24

def owner=(_)
end

#validate_owner(_) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Validate that the shareholder specified is the owner of this object

This is designed to be overridden by objects which provide more strict validation on ownership


14
15
# File 'lib/baron/transferrable.rb', line 14

def validate_owner(_)
end