Class: Oppen::Token::String
- Inherits:
-
Oppen::Token
- Object
- Oppen::Token
- Oppen::Token::String
- Defined in:
- lib/oppen/token.rb
Overview
String Token.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
String value.
Instance Method Summary collapse
-
#initialize(value) ⇒ String
constructor
A new instance of String.
- #length ⇒ Integer
- #to_s ⇒ String
Constructor Details
#initialize(value) ⇒ String
Returns a new instance of String.
32 33 34 35 |
# File 'lib/oppen/token.rb', line 32 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ String (readonly)
Returns String value.
30 31 32 |
# File 'lib/oppen/token.rb', line 30 def value @value end |
Instance Method Details
#length ⇒ Integer
38 39 40 |
# File 'lib/oppen/token.rb', line 38 def length value.length end |