Class: NoSE::Serialize::StatementRepresenter

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::Hash, Representable::JSON, Representable::Uncached, Representable::YAML
Defined in:
lib/nose/serialize.rb

Overview

Conversion of a statement is just the text

Instance Method Summary collapse

Methods included from Representable::Uncached

#representable_map

Instance Method Details

#to_hashObject

Represent as the text of the statement



231
232
233
# File 'lib/nose/serialize.rb', line 231

def to_hash(*)
  represented.text
end