Class: Paru::PandocFilter::IntValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#valueObject

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_astHash

Create an AST representation of this Node

Returns:

  • (Hash)


37
38
39
# File 'lib/paru/filter/int_value.rb', line 37

def to_ast()
  @value
end