Class: Chelsy::Type::Integral
- Defined in:
- lib/chelsy/ast.rb
Overview
== Integer types
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(unsigned: false, **rest) ⇒ Integral
constructor
A new instance of Integral.
- #unsigned? ⇒ Boolean
Methods inherited from Base
#const?, #qualified?, #volatile?
Constructor Details
#initialize(unsigned: false, **rest) ⇒ Integral
Returns a new instance of Integral.
321 322 323 324 |
# File 'lib/chelsy/ast.rb', line 321 def initialize(unsigned: false, **rest) @unsigned = !!unsigned super(**rest) end |
Instance Method Details
#unsigned? ⇒ Boolean
326 |
# File 'lib/chelsy/ast.rb', line 326 def unsigned?; @unsigned end |