lib/active_interaction/base.rb
# Get or set the description.
#
# @example
#   core.desc
#   # => nil
#   core.desc('Description!')
#   core.desc
#   # => "Description!"
#
# @param desc [String, nil] What to set the description to.
#
# @return [String, nil] The description.
Get or set the description.
Get or set the description .
def desc(desc = nil)
        if desc.nil?
          @_interaction_desc = nil unless instance_variable_defined?(:@_interaction_desc)
        else
          @_interaction_desc = desc
        end
        @_interaction_desc
      end
def desc ( desc = nil ) if desc . nil? @_interaction_desc = nil unless instance_variable_defined? ( :@_interaction_desc ) else @_interaction_desc = desc end @_interaction_desc end
Get or set the description.
Get or set the description .
None
String, nil
desc
None
example
None