Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Synvert::Core
# Action defines rewriter action, add, replace or remove code.
class Rewriter::Action
DEFAULT_OPTIONS = { autoindent: true }
DEFAULT_OPTIONS = { autoindent: true }.freeze
DEFAULT_INDENT = 2

# Initialize an action.
Expand Down
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Synvert::Core
# GemSpec checks and compares gem version.
class Rewriter::GemSpec
OPERATORS = {eq: '==', lt: '<', gt: '>', lte: '<=', gte: '>=', ne: '!='}
OPERATORS = {eq: '==', lt: '<', gt: '>', lte: '<=', gte: '>=', ne: '!='}.freeze

# Initialize a gem_spec.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def reset
# @return current filename
attr_accessor :current_node, :current_file

DEFAULT_OPTIONS = { sort_by: 'begin_pos' }
DEFAULT_OPTIONS = { sort_by: 'begin_pos' }.freeze

# Initialize an instance.
#
Expand Down