Class: IqRdf::Literal::Boolean

Inherits:
IqRdf::Literal show all
Defined in:
lib/iq_rdf/literal/boolean.rb

Instance Method Summary collapse

Methods inherited from IqRdf::Literal

build, #build_xml, #to_ntriples

Constructor Details

#initialize(b) ⇒ Boolean

Returns a new instance of Boolean.



5
6
7
# File 'lib/iq_rdf/literal/boolean.rb', line 5

def initialize(b)
  super(!!b, nil, ::URI.parse("http://www.w3.org/2001/XMLSchema#boolean"))
end

Instance Method Details

#to_s(options = {}) ⇒ Object



9
10
11
# File 'lib/iq_rdf/literal/boolean.rb', line 9

def to_s(options = {})
  @obj.to_s
end