Module: RTM::AR::TOSTRING::Variant
- Defined in:
- lib/rtm/activerecord/io/to_string.rb
Instance Method Summary collapse
Instance Method Details
#to_s(style = :short) ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/rtm/activerecord/io/to_string.rb', line 113 def to_s(style=:short) case style when :short value when :long r = " #{reifier.to_s(:short)}" if reifier i = " iids=#{item_identifiers.to_s}" unless item_identifiers.empty? "#<RTM::Variant id=#{id}#{i}#{r} value=#{value} scope=[scope.to_s]>" else super() # these () are needed, otherwise the own parameters are passed in end end |