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
-
#inspect ⇒ String
Inspects the resource with the unique name.
-
#to_s ⇒ String
Converts the named resource into a String.
Instance Method Details
#inspect ⇒ String
Inspects the resource with the unique name.
106 107 108 |
# File 'lib/ronin/model/has_unique_name.rb', line 106 def inspect "#<#{self.class}: #{self.name}>" end |
#to_s ⇒ String
Converts the named resource into a String.
92 93 94 |
# File 'lib/ronin/model/has_unique_name.rb', line 92 def to_s self.name.to_s end |