Class: Benchcc::Fusion::Cons
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Benchcc::Fusion::Cons
- Defined in:
- lib/benchcc/fusion.rb
Instance Method Summary collapse
Instance Method Details
#headers ⇒ Object
29 30 31 |
# File 'lib/benchcc/fusion.rb', line 29 def headers ["boost/fusion/container/list/cons.hpp"] end |
#includes ⇒ Object
25 26 27 |
# File 'lib/benchcc/fusion.rb', line 25 def includes headers.map { |hdr| "#include <#{hdr}>" }.join("\n") end |
#to_s ⇒ Object
33 34 35 36 37 |
# File 'lib/benchcc/fusion.rb', line 33 def to_s foldr('boost::fusion::nil_') do |head, tail| "boost::fusion::cons<#{head}, #{tail}>" end end |