Class: FFWD::Schema::Loaded
- Inherits:
-
Object
- Object
- FFWD::Schema::Loaded
- Defined in:
- lib/ffwd/schema.rb
Instance Attribute Summary collapse
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, mod) ⇒ Loaded
constructor
A new instance of Loaded.
- #support?(support) ⇒ Boolean
Constructor Details
#initialize(source, mod) ⇒ Loaded
Returns a new instance of Loaded.
54 55 56 57 |
# File 'lib/ffwd/schema.rb', line 54 def initialize source, mod @source = source @mod = mod end |
Instance Attribute Details
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
52 53 54 |
# File 'lib/ffwd/schema.rb', line 52 def mod @mod end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
52 53 54 |
# File 'lib/ffwd/schema.rb', line 52 def source @source end |
Instance Method Details
#support?(support) ⇒ Boolean
59 60 61 62 63 64 65 |
# File 'lib/ffwd/schema.rb', line 59 def support? support support.each do |m| return false unless @mod.respond_to? m end return true end |