class SheepAst::SheepObject

To define common definition of sheep object. It is applied to be instanciated a lot in the sheep ast liibrary like

MatchBase, ActionBase

@api private

Attributes

domain[RW]
full_name[RW]
my_factory[RW]
my_id[RW]
name[RW]

Public Class Methods

new() click to toggle source
# File lib/sheep_ast/sheep_obj.rb, line 31
def initialize
  @name = T.must(self.class.name).split('::').last
end

Public Instance Methods

within(&blk) click to toggle source
# File lib/sheep_ast/sheep_obj.rb, line 35
def within(&blk)
  instance_eval(&blk)
end