Class: Dramatis::Runtime::Gate::Constant
- Inherits:
-
Object
- Object
- Dramatis::Runtime::Gate::Constant
- Defined in:
- lib/dramatis/runtime/gate.rb
Instance Method Summary collapse
- #accept(*args) ⇒ Object
- #accepts?(*args) ⇒ Boolean
- #default(*args) ⇒ Object
-
#initialize(constant) ⇒ Constant
constructor
A new instance of Constant.
- #refuse(*args) ⇒ Object
- #set_default(*args) ⇒ Object
Constructor Details
#initialize(constant) ⇒ Constant
Returns a new instance of Constant.
152 153 154 |
# File 'lib/dramatis/runtime/gate.rb', line 152 def initialize constant @constant = constant end |
Instance Method Details
#accept(*args) ⇒ Object
162 163 164 165 |
# File 'lib/dramatis/runtime/gate.rb', line 162 def accept *args warn "HELLL" raise "hell" end |
#accepts?(*args) ⇒ Boolean
155 156 157 |
# File 'lib/dramatis/runtime/gate.rb', line 155 def accepts? *args @constant end |
#default(*args) ⇒ Object
166 167 168 169 |
# File 'lib/dramatis/runtime/gate.rb', line 166 def default *args warn "HELLL" raise "hell" end |
#refuse(*args) ⇒ Object
158 159 160 161 |
# File 'lib/dramatis/runtime/gate.rb', line 158 def refuse *args warn "HELLL" raise "hell" end |
#set_default(*args) ⇒ Object
170 171 172 173 |
# File 'lib/dramatis/runtime/gate.rb', line 170 def set_default *args warn "HELLL" raise "hell" end |