Class: Mayu::Resources::Types::Base
- Inherits:
-
Object
- Object
- Mayu::Resources::Types::Base
show all
- Extended by:
- T::Sig
- Defined in:
- lib/mayu/resources/types/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(resource) ⇒ Base
Returns a new instance of Base.
14
15
16
|
# File 'lib/mayu/resources/types/base.rb', line 14
def initialize(resource)
@resource = resource
end
|
Instance Method Details
#assets ⇒ Object
19
20
21
|
# File 'lib/mayu/resources/types/base.rb', line 19
def assets
[]
end
|
#generate_assets(assets_dir) ⇒ Object
29
30
31
|
# File 'lib/mayu/resources/types/base.rb', line 29
def generate_assets(assets_dir)
[]
end
|
#name ⇒ Object
24
25
26
|
# File 'lib/mayu/resources/types/base.rb', line 24
def name
self.class.name.to_s.sub(/.*::/, "")
end
|