Class: HTOTConv::Outline::Item
- Inherits:
-
Struct
- Object
- Struct
- HTOTConv::Outline::Item
- Defined in:
- lib/htot_conv/outline.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#level ⇒ Object
Returns the value of attribute level.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
64 65 66 |
# File 'lib/htot_conv/outline.rb', line 64 def key @key end |
#level ⇒ Object
Returns the value of attribute level
64 65 66 |
# File 'lib/htot_conv/outline.rb', line 64 def level @level end |
#value ⇒ Object
Returns the value of attribute value
64 65 66 |
# File 'lib/htot_conv/outline.rb', line 64 def value @value end |
Instance Method Details
#valid? ⇒ Boolean
65 66 67 68 69 70 |
# File 'lib/htot_conv/outline.rb', line 65 def valid? self.level.kind_of?(Numeric) && (self.level > 0) && (self.level.to_i == self.level) && self.value.kind_of?(Array) end |