Module: Vizier::Attributes

Includes:
Support
Defined in:
lib/support/vizier.rb

Constant Summary

Constants included from Support

Support::LEGAL_CHARS

Instance Method Summary collapse

Methods included from Support

#attributes, #attributes=, included, #legal?, #quote, #sanitize

Instance Method Details

#to_sObject


79
80
81
82
83
84
# File 'lib/support/vizier.rb', line 79

def to_s
  return '[]' if empty?
  '[ ' + self.map do |k,v|
    "#{quote k} = #{quote v}"
  end.join(" ") + ' ]'
end