Class: Chelsy::Constant::String
- Defined in:
- lib/chelsy/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(str, wide: false, **rest) ⇒ String
constructor
A new instance of String.
- #wide? ⇒ Boolean
Constructor Details
#initialize(str, wide: false, **rest) ⇒ String
Returns a new instance of String.
522 523 524 525 526 527 |
# File 'lib/chelsy/ast.rb', line 522 def initialize(str, wide: false, **rest) @value = Chelsy.immutable_stringify(str) @wide = !!wide super(**rest) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
520 521 522 |
# File 'lib/chelsy/ast.rb', line 520 def value @value end |
Instance Method Details
#wide? ⇒ Boolean
529 530 531 |
# File 'lib/chelsy/ast.rb', line 529 def wide? @wide end |