Class: Reddy::Literal::Encoding::Null
- Inherits:
-
Object
- Object
- Reddy::Literal::Encoding::Null
- Defined in:
- lib/reddy/literal.rb
Instance Method Summary collapse
- #format_as_n3(content) ⇒ Object
- #format_as_trix(content) ⇒ Object
- #inspect ⇒ Object
- #to_s ⇒ Object
- #xmlliteral? ⇒ Boolean
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 |
#inspect ⇒ Object
41 42 43 |
# File 'lib/reddy/literal.rb', line 41 def inspect "<theReddy::TypeLiteral::Encoding::Null>" end |
#to_s ⇒ Object
29 30 31 |
# File 'lib/reddy/literal.rb', line 29 def to_s '' end |
#xmlliteral? ⇒ Boolean
45 46 47 |
# File 'lib/reddy/literal.rb', line 45 def xmlliteral? false end |