Class: Enolib::ListItem

Inherits:
ValueElementBase show all
Defined in:
lib/enolib/elements/list_item.rb

Instance Method Summary collapse

Methods inherited from ValueElementBase

#optional_string_value, #optional_value, #required_string_value, #required_value, #value_error

Methods inherited from ElementBase

#comment_error, #error, #initialize, #key, #key_error, #optional_comment, #optional_string_comment, #raw, #required_comment, #required_string_comment, #string_key, #touch

Constructor Details

This class inherits a constructor from Enolib::ElementBase

Instance Method Details

#parentObject



5
6
7
# File 'lib/enolib/elements/list_item.rb', line 5

def parent
  @parent || List.new(@context, @instruction[:parent])
end

#to_sObject



9
10
11
# File 'lib/enolib/elements/list_item.rb', line 9

def to_s
  "#<Enolib::ListItem value=#{print_value}>"
end