Module: CEML::Lexer::Role4

Defined in:
lib/ceml/lang/tt/lexer.rb

Instance Method Summary collapse

Instance Method Details

#maxObject



1659
1660
1661
1662
# File 'lib/ceml/lang/tt/lexer.rb', line 1659

def max
    return range.value.max if respond_to? :range
    name =~ /s$/ ? 10000 : 1
end

#minObject



1655
1656
1657
1658
# File 'lib/ceml/lang/tt/lexer.rb', line 1655

def min
    return range.value.min if respond_to? :range
    name =~ /s$/ ? 2 : 1
end

#nameObject



1654
# File 'lib/ceml/lang/tt/lexer.rb', line 1654

def name; if respond_to? :rolename then rolename.text_value else text_value end; end

#qualifiersObject



1663
1664
1665
1666
# File 'lib/ceml/lang/tt/lexer.rb', line 1663

def qualifiers
    return [qualifier.text_value] if respond_to? :qualifier
    return []
end