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.



31
32
33
# File 'lib/paru/filter/int_value.rb', line 31

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject

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_astHash

Create an AST representation of this Node

Returns:

  • (Hash)


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

def to_ast
  @value
end