class Generated::BeginWhileRule
Attributes
begin[RW]
@return [String] The begin pattern
beginCaptures[RW]
@return [Hash<String=>Rule>] The captures rules for begin
contentName[RW]
@return [String,nil] The name for the contents matched
name[RW]
@return [String,nil] The name for this rule
while[RW]
@return [String] The while pattern
whileCaptures[RW]
@return [Hash<String=>Rule>] The captures rules for while
Public Class Methods
new(location)
click to toggle source
Calls superclass method
Generated::Rule::new
# File lib/textmate_grammar/generated/rule.rb, line 129 def initialize(location) super(location) end
Public Instance Methods
to_h()
click to toggle source
# File lib/textmate_grammar/generated/rule.rb, line 133 def to_h { "begin" => @begin, "while" => @while, "name" => @name, "contentName" => @contentName, "beginCaptures" => @beginCaptures.transform_values(&:to_h), "whileCaptures" => @whileCaptures.transform_values(&:to_h), }.compact end