class Reactor::Attributes::LinkListFromAccessor
Attributes
attribute[RW]
obj[RW]
Public Class Methods
new(obj, attribute)
click to toggle source
# File lib/reactor/attributes/link_list_from_accessor.rb, line 4 def initialize(obj, attribute) self.obj = obj self.attribute = attribute end
Public Instance Methods
call()
click to toggle source
# File lib/reactor/attributes/link_list_from_accessor.rb, line 9 def call self.obj[self.attribute.to_sym] || RailsConnector::LinkList.new([]) end