Class: Paru::PandocFilter::IntValue
- Inherits:
-
Object
- Object
- Paru::PandocFilter::IntValue
- Defined in:
- lib/paru/filter/int_value.rb
Overview
An IntValue represents some sort of integer metadata about block or inline nodes
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ IntValue
constructor
A new instance of IntValue.
-
#to_ast ⇒ Hash
Create an AST representation of this Node.
Constructor Details
#initialize(value) ⇒ IntValue
Returns a new instance of IntValue.
31 32 33 |
# File 'lib/paru/filter/int_value.rb', line 31 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
29 30 31 |
# File 'lib/paru/filter/int_value.rb', line 29 def value @value end |
Instance Method Details
#to_ast ⇒ Hash
Create an AST representation of this Node
38 39 40 |
# File 'lib/paru/filter/int_value.rb', line 38 def to_ast @value end |