class ContentfulConverter::Stack
Public Class Methods
new()
click to toggle source
# File lib/contentful_converter/stack.rb, line 5 def initialize @stack = [] end
Public Instance Methods
add(value)
click to toggle source
# File lib/contentful_converter/stack.rb, line 9 def add(value) @stack << value end
any?()
click to toggle source
# File lib/contentful_converter/stack.rb, line 17 def any? @stack.any? end
pop()
click to toggle source
# File lib/contentful_converter/stack.rb, line 13 def pop @stack.pop end