Class: ContentDoc
- Inherits:
-
Object
show all
- Includes:
- Assert
- Defined in:
- lib/ribit/contentparser.rb
Instance Method Summary
collapse
Methods included from Assert
assert, #assert, assert_nil, #assert_nil, #assert_not_nil, assert_not_nil, raise_exception
Constructor Details
#initialize(ribitData, currentPage) ⇒ ContentDoc
Returns a new instance of ContentDoc.
693
694
695
696
697
698
699
|
# File 'lib/ribit/contentparser.rb', line 693
def initialize( ribitData, currentPage )
assert_not_nil( currentPage, 'The provided currentPage is nil' )
@root = RootContainer.new( currentPage.data )
@refCounter = 1
@currentPage = currentPage
@ribitData = ribitData
end
|
Instance Method Details
#get_current_category ⇒ Object
719
720
721
|
# File 'lib/ribit/contentparser.rb', line 719
def get_current_category
@currentPage.category
end
|
#get_current_page_full_id ⇒ Object
724
725
726
|
# File 'lib/ribit/contentparser.rb', line 724
def get_current_page_full_id
@currentPage.full_id
end
|
#get_next_ref_counter ⇒ Object
707
708
709
710
711
|
# File 'lib/ribit/contentparser.rb', line 707
def get_next_ref_counter
current = @refCounter
@refCounter = @refCounter + 1
return current
end
|
#get_ribitdata ⇒ Object
714
715
716
|
# File 'lib/ribit/contentparser.rb', line 714
def get_ribitdata
return @ribitData
end
|
#get_root ⇒ Object
702
703
704
|
# File 'lib/ribit/contentparser.rb', line 702
def get_root
return @root
end
|
#to_s ⇒ Object
729
730
731
|
# File 'lib/ribit/contentparser.rb', line 729
def to_s
return @root.to_s
end
|