class Generated::BeginEndRule
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
end[RW]
@return [String] The end pattern
endCaptures[RW]
@return [Hash<String=>Rule>] The captures rules for end
name[RW]
@return [String,nil] The name for this rule
Public Class Methods
new(location)
click to toggle source
Calls superclass method
Generated::Rule::new
# File lib/textmate_grammar/generated/rule.rb, line 99 def initialize(location) super(location) end
Public Instance Methods
to_h()
click to toggle source
# File lib/textmate_grammar/generated/rule.rb, line 103 def to_h { "begin" => @begin, "end" => @end, "name" => @name, "contentName" => @contentName, "beginCaptures" => @beginCaptures.transform_values(&:to_h), "endCaptures" => @endCaptures.transform_values(&:to_h), }.compact end