Class: Puppet::Pops::PN::Indent

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/pn.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(indent = ' ', current = '') ⇒ Indent

Returns a new instance of Indent.



74
75
76
77
# File 'lib/puppet/pops/pn.rb', line 74

def initialize(indent = '  ', current = '')
  @indent = indent
  @current = current
end

Instance Attribute Details

#currentObject (readonly)



72
73
74
# File 'lib/puppet/pops/pn.rb', line 72

def current
  @current
end

Instance Method Details

#increaseObject



79
80
81
# File 'lib/puppet/pops/pn.rb', line 79

def increase
  Indent.new(@indent, @current + @indent)
end