Class: Helioth::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/helioth/role.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Role

Returns a new instance of Role.



3
4
5
# File 'lib/helioth/role.rb', line 3

def initialize(&block)
  instance_eval(&block)
end

Instance Method Details

#feature(*feature) ⇒ Object



15
16
17
# File 'lib/helioth/role.rb', line 15

def feature(*feature)
  @feature ||= feature
end

#instance(*instance) ⇒ Object



11
12
13
# File 'lib/helioth/role.rb', line 11

def instance(*instance)
  @instance ||= instance
end

#user(*user) ⇒ Object



7
8
9
# File 'lib/helioth/role.rb', line 7

def user(*user)
  @user ||= user
end