lib/aixm/feature/obstacle.rb
Class Obstacle
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Obstacle < Feature
include AIXM::Concerns::Association
include AIXM::Concerns::Remarks
public_class_method :new
Method add_to
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def add_to(builder, delegate: true)
obstacle_group = self.obstacle_group || singleton_obstacle_group
return obstacle_group.add_to(builder) if delegate && AIXM.ofmx?
builder.comment "Obstacle: [#{type}] #{xy.to_s} #{name}".dress
builder.text "\n"