Class: Germinate::CodeHunk

Inherits:
Hunk
  • Object
show all
Defined in:
lib/germinate/hunk.rb

Instance Method Summary collapse

Methods inherited from Hunk

#[], #index_matching, #initialize, #inspect, #resolve_insertions, #slice, #strip

Methods included from SharedStyleAttributes

#copy_shared_style_attrubutes_from, #shared_style_attributes

Constructor Details

This class inherits a constructor from Germinate::Hunk

Instance Method Details

#code_close_bracket=(new_value) ⇒ Object



135
136
137
# File 'lib/germinate/hunk.rb', line 135

def code_close_bracket=(new_value)
  super
end

#code_open_bracket=(new_value) ⇒ Object



131
132
133
# File 'lib/germinate/hunk.rb', line 131

def code_open_bracket=(new_value)
  super
end

#format_with(formatter) ⇒ Object



140
141
142
143
144
# File 'lib/germinate/hunk.rb', line 140

def format_with(formatter)
  super(formatter) do |formatter|
    formatter.format_code!(self, comment_prefix)
  end
end