Class: Rails::Annotate::Solargraph::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/annotate/solargraph/configuration.rb

Constant Summary collapse

ANNOTATION_POSITIONS =
::Set[:bottom, :top, :schema_file].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
# File 'lib/rails/annotate/solargraph/configuration.rb', line 14

def initialize
  @annotation_position = :schema_file
end

Instance Attribute Details

#annotation_positionSymbol

Returns:

  • (Symbol)


10
11
12
# File 'lib/rails/annotate/solargraph/configuration.rb', line 10

def annotation_position
  @annotation_position
end

Instance Method Details

#schema_file?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/rails/annotate/solargraph/configuration.rb', line 29

def schema_file?
  @annotation_position == :schema_file
end