Class: Rena::Literal::Encoding::Null

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

Instance Method Summary collapse

Instance Method Details

#format_as_n3(content) ⇒ Object



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

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

#format_as_trix(content) ⇒ Object



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

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

#inspectObject



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

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

#to_sObject



25
26
27
# File 'lib/rena/literal.rb', line 25

def to_s
  ''
end

#xmlliteral?Boolean



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

def xmlliteral?
  false
end