Class: SublimeDSL::TextMate::Grammar::RuleBuilder
- Inherits:
-
Object
- Object
- SublimeDSL::TextMate::Grammar::RuleBuilder
show all
- Defined in:
- lib/sublime_dsl/textmate/grammar/dsl_reader.rb
Defined Under Namespace
Classes: BeginEndState, MatchState, State
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of RuleBuilder.
173
174
175
176
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 173
def initialize(scope)
@state = State.new(self)
@state.scope = scope
end
|
Instance Attribute Details
#state ⇒ Object
Returns the value of attribute state.
171
172
173
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 171
def state
@state
end
|
Instance Method Details
#both(captures) ⇒ Object
194
195
196
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 194
def both(captures)
state.both captures
end
|
#content_scope=(scope) ⇒ Object
198
199
200
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 198
def content_scope=(scope)
state.content_scope = scope
end
|
#disabled=(value) ⇒ Object
178
179
180
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 178
def disabled=(value)
state.disabled = value
end
|
#from(re, captures) ⇒ Object
186
187
188
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 186
def from(re, captures)
state.from re, captures
end
|
#match(re, captures) ⇒ Object
182
183
184
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 182
def match(re, captures)
state.match re, captures
end
|
#patterns ⇒ Object
206
207
208
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 206
def patterns
state.patterns
end
|
#rule ⇒ Object
210
211
212
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 210
def rule
state.rule
end
|
#to(re, captures) ⇒ Object
190
191
192
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 190
def to(re, captures)
state.to re, captures
end
|
#to_last=(value) ⇒ Object
202
203
204
|
# File 'lib/sublime_dsl/textmate/grammar/dsl_reader.rb', line 202
def to_last=(value)
state.to_last = value
end
|