Class: RemLint::Vocabulary::Keyword

Inherits:
Struct
  • Object
show all
Defined in:
lib/remlint/vocabulary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#minlenObject

Returns the value of attribute minlen

Returns:

  • (Object)

    the current value of minlen



29
30
31
# File 'lib/remlint/vocabulary.rb', line 29

def minlen
  @minlen
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



29
30
31
# File 'lib/remlint/vocabulary.rb', line 29

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



29
30
31
# File 'lib/remlint/vocabulary.rb', line 29

def type
  @type
end

Instance Method Details

#body?Boolean

MSG, MSF, RUN, CAL, SATISFY, SPECIAL, PS, PSFILE -- the token that ends a trigger and starts the reminder body.

Returns:

  • (Boolean)


36
37
38
# File 'lib/remlint/vocabulary.rb', line 36

def body?
  type == "T_RemType"
end

#clause?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/remlint/vocabulary.rb', line 30

def clause?
  CLAUSE_TYPES.include?(type)
end