Module: IrbCompat
- Defined in:
- lib/attribute_struct/irb_compat.rb
Overview
Helper methods for IRB interactions
Instance Method Summary collapse
-
#inspect ⇒ String
Object inspection.
-
#to_s ⇒ String
String of instance.
Instance Method Details
#inspect ⇒ String
Returns object inspection
5 6 7 |
# File 'lib/attribute_struct/irb_compat.rb', line 5 def inspect "<[#{self._klass}:#{@table.object_id}] - table: #{@table.inspect}>" end |
#to_s ⇒ String
Returns string of instance
10 11 12 |
# File 'lib/attribute_struct/irb_compat.rb', line 10 def to_s "<#{self._klass}:#{@table.object_id}>" end |