Class: Rails::Annotate::Solargraph::Configuration
- Inherits:
-
Object
- Object
- Rails::Annotate::Solargraph::Configuration
- 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
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #schema_file? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
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_position ⇒ 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
29 30 31 |
# File 'lib/rails/annotate/solargraph/configuration.rb', line 29 def schema_file? @annotation_position == :schema_file end |