Class: Narabi::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/narabi/parser.rb

Class Method Summary collapse

Class Method Details

.parse_line(src) ⇒ Object



55
56
57
58
59
60
61
62
# File 'lib/narabi/parser.rb', line 55

def self.parse_line(src)
  if ins = Base.try_to_create(INSTANCE_ALIAS_REGEXP, src)
    return ins
  end
  if ins = Base.try_to_create(INSTANCE_REGEXP, src)
    return ins
  end
end