Class: IqRdf::Literal::Boolean
- Inherits:
-
IqRdf::Literal
- Object
- IqRdf::Literal
- IqRdf::Literal::Boolean
- Defined in:
- lib/iq_rdf/literal/boolean.rb
Instance Method Summary collapse
-
#initialize(b) ⇒ Boolean
constructor
A new instance of Boolean.
- #to_s(options = {}) ⇒ Object
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( = {}) @obj.to_s end |