Class: Reddy::Literal::Encoding::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/reddy/literal.rb

Instance Method Summary collapse

Instance Method Details

#format_as_n3(content) ⇒ Object



33
34
35
# File 'lib/reddy/literal.rb', line 33

def format_as_n3(content)
  "\"#{content}\""
end

#format_as_trix(content) ⇒ Object



37
38
39
# File 'lib/reddy/literal.rb', line 37

def format_as_trix(content)
  "<plainLiteral>#{content}</plainLiteral>"
end

#inspectObject



41
42
43
# File 'lib/reddy/literal.rb', line 41

def inspect
  "<theReddy::TypeLiteral::Encoding::Null>"
end

#to_sObject



29
30
31
# File 'lib/reddy/literal.rb', line 29

def to_s
  ''
end

#xmlliteral?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/reddy/literal.rb', line 45

def xmlliteral?
  false
end