class Namarara::BoolValue
Attributes
errors[R]
Public Class Methods
new(str)
click to toggle source
# File lib/namarara/parser.rb, line 81 def initialize(str) @errors = [] @value = case str when /true/i then true when /false/i then false end end
Public Instance Methods
compute()
click to toggle source
# File lib/namarara/parser.rb, line 89 def compute @value end
to_s()
click to toggle source
# File lib/namarara/parser.rb, line 93 def to_s "bool:#{@value}" end