Module: Ronin::Model::HasUniqueName::InstanceMethods

Defined in:
lib/ronin/model/has_unique_name.rb

Overview

Instance methods that will be added when Ronin::Model::HasUniqueName is included.

Instance Method Summary collapse

Instance Method Details

#inspectString

Inspects the resource with the unique name.

Returns:

  • (String)

    The inspected resource.

Since:

  • 1.0.0



106
107
108
# File 'lib/ronin/model/has_unique_name.rb', line 106

def inspect
  "#<#{self.class}: #{self.name}>"
end

#to_sString

Converts the named resource into a String.

Returns:

  • (String)

    The name of the resource.

Since:

  • 1.0.0



92
93
94
# File 'lib/ronin/model/has_unique_name.rb', line 92

def to_s
  self.name.to_s
end