Class: MD4C::Heading

Inherits:
Object
  • Object
show all
Defined in:
lib/md4c.rb,
sig/md4c.rbs,
ext/md4c/rb_md4c.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#levelInteger (readonly)

Returns the value of attribute level.

Returns:

  • (Integer)


58
59
60
# File 'lib/md4c.rb', line 58

def level
  @level
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
# File 'lib/md4c.rb', line 60

def ==(other)
  self.class == other.class && level == other.level
end

#deconstruct_keys(*keys) ⇒ Object



64
65
66
# File 'lib/md4c.rb', line 64

def deconstruct_keys(*keys)
  { level: @level }
end