Class: ExtPP::Compiler
- Inherits:
-
Object
- Object
- ExtPP::Compiler
- Defined in:
- lib/extpp/compiler.rb
Instance Attribute Summary collapse
-
#cxx_flags ⇒ Object
readonly
Returns the value of attribute cxx_flags.
Instance Method Summary collapse
- #check ⇒ Object
- #gcc? ⇒ Boolean
-
#initialize(cxx_flags) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(cxx_flags) ⇒ Compiler
Returns a new instance of Compiler.
6 7 8 |
# File 'lib/extpp/compiler.rb', line 6 def initialize(cxx_flags) @cxx_flags = cxx_flags end |
Instance Attribute Details
#cxx_flags ⇒ Object (readonly)
Returns the value of attribute cxx_flags.
5 6 7 |
# File 'lib/extpp/compiler.rb', line 5 def cxx_flags @cxx_flags end |
Instance Method Details
#check ⇒ Object
14 15 16 17 18 19 |
# File 'lib/extpp/compiler.rb', line 14 def check check_debug_build check_cxx check_version check_warning_flags end |
#gcc? ⇒ Boolean
10 11 12 |
# File 'lib/extpp/compiler.rb', line 10 def gcc? RbConfig::CONFIG["GCC"] == "yes" end |