class SchemaReader::Attribute
Attributes
name[R]
type[R]
Public Class Methods
new(type, name)
click to toggle source
# File lib/schema_reader.rb, line 74 def initialize(type, name) @name, @type = name, type end
parse(attribute)
click to toggle source
# File lib/schema_reader.rb, line 78 def self.parse(attribute) match = attribute.match(/t\.(\w+)\s+"(\w+)"/) if match Attribute.new(*match.captures) end end