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.
30 31 32 |
# File 'lib/paru/filter/int_value.rb', line 30 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
28 29 30 |
# File 'lib/paru/filter/int_value.rb', line 28 def value @value end |
Instance Method Details
#to_ast ⇒ Hash
Create an AST representation of this Node
37 38 39 |
# File 'lib/paru/filter/int_value.rb', line 37 def to_ast() @value end |