Module: Tapioca::Dsl::Compilers::Extensions::FrozenRecord

Defined in:
lib/tapioca/dsl/extensions/frozen_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#__tapioca_scope_namesObject (readonly)

Returns the value of attribute __tapioca_scope_names.



15
16
17
# File 'lib/tapioca/dsl/extensions/frozen_record.rb', line 15

def __tapioca_scope_names
  @__tapioca_scope_names
end

Instance Method Details

#scope(name, body) ⇒ Object



17
18
19
20
21
22
# File 'lib/tapioca/dsl/extensions/frozen_record.rb', line 17

def scope(name, body)
  @__tapioca_scope_names ||= []
  @__tapioca_scope_names << name

  super
end