Anons79 Mini Shell

Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/config_node_comment.rb

# encoding: utf-8

require 'hocon/impl'
require 'hocon/config_error'
require 'hocon/impl/config_node_single_token'
require 'hocon/impl/tokens'

class Hocon::Impl::ConfigNodeComment < Hocon::Impl::ConfigNodeSingleToken
  def initialize(comment)
    super(comment)
    unless Hocon::Impl::Tokens.comment?(@token)
      raise Hocon::ConfigError::ConfigBugOrBrokenError, 'Tried to create a ConfigNodeComment from a non-comment token'
    end
  end

  def comment_text
    Hocon::Impl::Tokens.comment_text(@token)
  end
end

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]