module Firebrew::Entity::ClassMethod
Attributes
attributes[RW]
Public Class Methods
extended(base)
click to toggle source
# File lib/firebrew/entity.rb, line 12 def self.extended(base) base.attributes = [] end
Public Instance Methods
entity_attr(*attrs)
click to toggle source
# File lib/firebrew/entity.rb, line 20 def entity_attr(*attrs) attrs.uniq! common = self.attributes & attrs adding = attrs - common self.attributes.push(*adding) attr_accessor *adding adding end
inherited(base)
click to toggle source
# File lib/firebrew/entity.rb, line 16 def inherited(base) base.attributes = self.attributes.clone end