Class: Hocon::Impl::Tokens::UnquotedText
- Defined in:
- lib/hocon/impl/tokens.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(origin, s) ⇒ UnquotedText
constructor
A new instance of UnquotedText.
- #to_s ⇒ Object
Constructor Details
#initialize(origin, s) ⇒ UnquotedText
Returns a new instance of UnquotedText.
43 44 45 46 |
# File 'lib/hocon/impl/tokens.rb', line 43 def initialize(origin, s) super(TokenType::UNQUOTED_TEXT, origin) @value = s end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
47 48 49 |
# File 'lib/hocon/impl/tokens.rb', line 47 def value @value end |
Instance Method Details
#to_s ⇒ Object
49 50 51 |
# File 'lib/hocon/impl/tokens.rb', line 49 def to_s "'#{value}'" end |