Skip to content

Commit

Permalink
Cleaning up unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
khamusa committed Jan 9, 2025
1 parent b3e64d4 commit a7215bf
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/tabasco/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

module Tabasco
PreconditionNotMetError = Class.new(StandardError)
class CapybaraAPI
include Capybara::DSL
end

class Section
include Capybara::RSpecMatchers
Expand Down Expand Up @@ -65,26 +62,6 @@ def self.attribute(*)
# Can be overridden in the inline block anyway
ensure_loaded { container }

class_eval <<~METHOD, __FILE__, __LINE__ + 1
class << self
def name
"#{parent_name}|#{section_name}"
end
def inspect
"Section(\#{name})"
end
alias_method :to_s, :inspect
end
def inspect
"#<\#{self.class.inspect}:\#{object_id}>"
end
alias_method :to_s, :inspect
METHOD

class_eval(&block) if block
end

Expand Down

0 comments on commit a7215bf

Please sign in to comment.