module Representable::Feature
Public Instance Methods
feature(*mods)
click to toggle source
# File lib/representable.rb, line 129 def feature(*mods) mods.each do |mod| include mod register_feature(mod) end end
Private Instance Methods
register_feature(mod)
click to toggle source
# File lib/representable.rb, line 137 def register_feature(mod) representable_attrs[:features][mod] = true end