Module: CodeModels::Ruby::Literal::Methods
- Included in:
- CodeModels::Ruby::Literal
- Defined in:
- lib/codemodels/ruby/metamodel.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
134 135 136 |
# File 'lib/codemodels/ruby/metamodel.rb', line 134 def inspect "#{self.class}[#{to_s}]" end |
#to_s ⇒ Object
126 127 128 129 130 131 132 |
# File 'lib/codemodels/ruby/metamodel.rb', line 126 def to_s if respond_to? :value value.to_s else super end end |