Class: TheSchemaIs::Cops::Parser::Column
- Inherits:
-
Struct
- Object
- Struct
- TheSchemaIs::Cops::Parser::Column
- Defined in:
- lib/the_schema_is/cops/parser.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition
23 24 25 |
# File 'lib/the_schema_is/cops/parser.rb', line 23 def definition @definition end |
#name ⇒ Object
Returns the value of attribute name
23 24 25 |
# File 'lib/the_schema_is/cops/parser.rb', line 23 def name @name end |
#source ⇒ Object
Returns the value of attribute source
23 24 25 |
# File 'lib/the_schema_is/cops/parser.rb', line 23 def source @source end |
#type ⇒ Object
Returns the value of attribute type
23 24 25 |
# File 'lib/the_schema_is/cops/parser.rb', line 23 def type @type end |
Instance Method Details
#definition_source ⇒ Object
24 25 26 27 28 |
# File 'lib/the_schema_is/cops/parser.rb', line 24 def definition_source return unless definition eval('{' + definition.loc.expression.source + '}') # rubocop:disable Security/Eval,Style/StringConcatenation end |