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.



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

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

Instance Attribute Details

#currentObject (readonly)



70
71
72
# File 'lib/puppet/pops/pn.rb', line 70

def current
  @current
end

Instance Method Details

#increaseObject



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

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