Class: SublimeDSL::TextMate::Grammar::Include

Inherits:
Object
  • Object
show all
Defined in:
lib/sublime_dsl/textmate/grammar.rb

Overview

An included fragment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fragment_name) ⇒ Include

Returns a new instance of Include.



118
119
120
# File 'lib/sublime_dsl/textmate/grammar.rb', line 118

def initialize(fragment_name)
  @fragment_name = fragment_name
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



117
118
119
# File 'lib/sublime_dsl/textmate/grammar.rb', line 117

def comment
  @comment
end

#fragmentObject

Returns the value of attribute fragment.



116
117
118
# File 'lib/sublime_dsl/textmate/grammar.rb', line 116

def fragment
  @fragment
end

#fragment_nameObject (readonly)

Returns the value of attribute fragment_name.



115
116
117
# File 'lib/sublime_dsl/textmate/grammar.rb', line 115

def fragment_name
  @fragment_name
end