Class: MD4C::Heading
- Inherits:
-
Object
- Object
- MD4C::Heading
- Defined in:
- lib/md4c.rb,
sig/md4c.rbs,
ext/md4c/rb_md4c.c
Instance Attribute Summary collapse
-
#level ⇒ Integer
readonly
Returns the value of attribute level.
Instance Method Summary collapse
Instance Attribute Details
#level ⇒ Integer (readonly)
Returns the value of attribute level.
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 |