Method: Sfn::CommandModule::Base::InstanceMethods#attribute_allowed?

Defined in:
lib/sfn/command_module/base.rb

#attribute_allowed?(attr) ⇒ TrueClass, FalseClass

Check if attribute is allowed for display

Parameters:

  • attr (String)

Returns:

  • (TrueClass, FalseClass)


89
90
91
# File 'lib/sfn/command_module/base.rb', line 89

def attribute_allowed?(attr)
  opts.fetch(:all_attributes, config[:all_attributes], allowed_attributes.include?(attr))
end