Class: EDN::Type::Unknown

Inherits:
Struct
  • Object
show all
Defined in:
lib/edn/type/unknown.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



3
4
5
# File 'lib/edn/type/unknown.rb', line 3

def tag
  @tag
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/edn/type/unknown.rb', line 3

def value
  @value
end

Instance Method Details

#to_ednObject



4
5
6
# File 'lib/edn/type/unknown.rb', line 4

def to_edn
  EDN.tagout(tag, value)
end