Method: Languages::Ruby::AttributeRuby#detect_attribute
- Defined in:
- lib/kuniri/language/ruby/attribute_ruby.rb
#detect_attribute(pLine) ⇒ Object (protected)
Override
45 46 47 48 49 |
# File 'lib/kuniri/language/ruby/attribute_ruby.rb', line 45 def detect_attribute(pLine) regexExp = /^\s*(?:@|attr_(?:accessor|read|write))(.*)$/ return nil unless pLine =~ regexExp return pLine.scan(regexExp)[0].join("") end |